Show / Hide Table of Contents

Method sqlite.Transaction


Overload

Returns new SLTransaction(this, sql, sqlOfDispose). See SLTransaction.SLTransaction.

public SLTransaction Transaction(string sql = "BEGIN", string sqlOfDispose = "ROLLBACK")
Parameters
sql  (string)

SQL to execute now. Default "BEGIN". For nested transaction use "SAVEPOINT name".

sqlOfDispose  (string)

SQL to execute when disposing the SLTransaction variable if not called SLTransaction.Commit or SLTransaction.Rollback. Default "ROLLBACK". For nested transaction use "ROLLBACK TO name". See also: SLTransaction.SqlOfDispose.

Returns
SLTransaction
Exceptions
SLException

Failed to execute sql.