C# Class Mono.Data.Sqlite.Orm.SqliteExtensions

Mostrar archivo Open project: mattleibow/Mono.Data.Sqlite.Orm

Public Methods

Method Description
CreateSavepoint ( this transaction ) : string

Saves a point in a transaction using a random name.

CreateSavepoint ( this transaction, string savepoint ) : void

Saves a point in a transaction using the given savepoint name.

Matches ( this column, string match ) : bool
ReleaseSavepoint ( this transaction, string savepoint ) : void

This causes all savepoints back to and including the most recent savepoint with a matching name to be removed from the transaction stack. It does not cause any changes to be written to the database file, but merely removes savepoints from the transaction stack such that it is no longer possible to rollback to those savepoints.

RollbackSavepoint ( this transaction, string savepoint ) : void

Reverts the state of the database back to what it was just after the corresponding savepoint. This does not cancel the transaction, but all intervening savepoints are canceled.

Private Methods

Method Description
EnsureInProgress ( SqliteTransaction transaction ) : void

Method Details

CreateSavepoint() public static method

Saves a point in a transaction using a random name.
public static CreateSavepoint ( this transaction ) : string
transaction this
return string

CreateSavepoint() public static method

Saves a point in a transaction using the given savepoint name.
public static CreateSavepoint ( this transaction, string savepoint ) : void
transaction this
savepoint string /// The savepoint name to use. ///
return void

Matches() public static method

public static Matches ( this column, string match ) : bool
column this
match string
return bool

ReleaseSavepoint() public static method

This causes all savepoints back to and including the most recent savepoint with a matching name to be removed from the transaction stack. It does not cause any changes to be written to the database file, but merely removes savepoints from the transaction stack such that it is no longer possible to rollback to those savepoints.
public static ReleaseSavepoint ( this transaction, string savepoint ) : void
transaction this
savepoint string /// The savepoint name to release. ///
return void

RollbackSavepoint() public static method

Reverts the state of the database back to what it was just after the corresponding savepoint. This does not cancel the transaction, but all intervening savepoints are canceled.
public static RollbackSavepoint ( this transaction, string savepoint ) : void
transaction this
savepoint string The savepoint name to rollback to.
return void