On 9 Aug 2010, at 5:05pm, Josh wrote:

> I'm new to the list and had a question. I know the default behavior for 
> savepoints (or any transactions) is that if they have not been committed, if 
> the program crashes, they are lost. Is there any way to have them committed 
> by 
> default? Basically I *only* want the transaction rolled back in case of an 
> explicit rollback statement, not due to program crash/power failure, etc. 
> Does 
> anyone know of a way of doing this? Thanks!

Sure.  Don't define any transactions.  Just issue every command separately.  
That way SQLite automatically makes a little transaction for each command, and 
once the command is finished it will automatically COMMIT it.

Simon.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to