// Savepoint starts a new transaction with a name.
// Savepoint starts a new transaction with a name.
// (See http://sqlite.org/lang_savepoint.html)
// (See http://sqlite.org/lang_savepoint.html)
func(c*Conn)Savepoint(namestring)error{
func(c*Conn)Savepoint(namestring)error{
returnc.exec(Mprintf("SAVEPOINT %Q",name))
returnc.FastExec(Mprintf("SAVEPOINT %Q",name))
}
}
// ReleaseSavepoint causes all savepoints back to and including the most recent savepoint with a matching name to be removed from the transaction stack.
// ReleaseSavepoint causes all savepoints back to and including the most recent savepoint with a matching name to be removed from the transaction stack.
// (See http://sqlite.org/lang_savepoint.html)
// (See http://sqlite.org/lang_savepoint.html)
func(c*Conn)ReleaseSavepoint(namestring)error{
func(c*Conn)ReleaseSavepoint(namestring)error{
returnc.exec(Mprintf("RELEASE %Q",name))
returnc.FastExec(Mprintf("RELEASE %Q",name))
}
}
// RollbackSavepoint reverts the state of the database back to what it was just before the corresponding SAVEPOINT.
// RollbackSavepoint reverts the state of the database back to what it was just before the corresponding SAVEPOINT.
// (See http://sqlite.org/lang_savepoint.html)
// (See http://sqlite.org/lang_savepoint.html)
func(c*Conn)RollbackSavepoint(namestring)error{
func(c*Conn)RollbackSavepoint(namestring)error{
returnc.exec(Mprintf("ROLLBACK TO SAVEPOINT %Q",name))
returnc.FastExec(Mprintf("ROLLBACK TO SAVEPOINT %Q",name))