Hi everybody,
SQLite implements the SQL commands "BEGIN TRANSACTION", "COMMIT TRANSACTION", "ROLLBACK TRANSACTION", "END TRANSACTION", "SAVEPOINT", etc...
Are there any recommendations on wich is the best way to manage database transacions?
I mean, which is better: using B4A SQL object methods, or native SQL commands implemented by SQLite itself?
Sometimes it gets a bit confusing to me, as SQL object has no "rollback" method, which leads me to use an SQLite command to rollback a transaction.
Same thing when one needs to create nested transactions, which is quite common on database application development, and as far as I know is supported by SQLite "SAVEPOINT" command, but not by B4A SQL Object...
Thanks and regards!
Claudio
SQLite implements the SQL commands "BEGIN TRANSACTION", "COMMIT TRANSACTION", "ROLLBACK TRANSACTION", "END TRANSACTION", "SAVEPOINT", etc...
Are there any recommendations on wich is the best way to manage database transacions?
I mean, which is better: using B4A SQL object methods, or native SQL commands implemented by SQLite itself?
Sometimes it gets a bit confusing to me, as SQL object has no "rollback" method, which leads me to use an SQLite command to rollback a transaction.
Same thing when one needs to create nested transactions, which is quite common on database application development, and as far as I know is supported by SQLite "SAVEPOINT" command, but not by B4A SQL Object...
Thanks and regards!
Claudio