I need the ability to define sequences of SQLite statements as transactions. The dictionary shows me command to issue COMMIT and ROLLBACK commands but I don;t see anything that will issue a BEGIN. Am I missing something? Do I have to use revExecuteSQL to issue a BEGIN?
In addition, the command/function that issues a ROLLBACK doesn't provide a way to include the SAVEPOINT parameter of the ROLLBACK command. Does this mean I have to use revExecuteSQL again?
Thanks,
Pete
Controlling SQLite transactions
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 1005
- Joined: Sat Apr 08, 2006 3:06 pm
- Contact:
Skip the RevDB calls and just execute the BEGIN, COMMIT and ROLLBACK commands yourself with revExecuteSQL.
With Rev 4.0 the SQLite driver has been updated to 3.6.17 which has support for savepoints. So if you have that driver you can use savepoints with revExecuteSQL.
With Rev 4.0 the SQLite driver has been updated to 3.6.17 which has support for savepoints. So if you have that driver you can use savepoints with revExecuteSQL.
Trevor DeVore
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
-
- VIP Livecode Opensource Backer
- Posts: 1005
- Joined: Sat Apr 08, 2006 3:06 pm
- Contact:
Still in Beta. You could *probably* just snatch the dbsqlite.dll/.bundle that comes with 4.0 and use it in a 3.5 installation though if you need savepoints.
Trevor DeVore
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
ScreenSteps - https://www.screensteps.com
LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder