SavePoint class

SQLite SavePoint for nested transaction

By default, the sql.Database.begin will create a default Transaction class instead of SavePoint. To create the SavePoint transaction pass sql.TransactionCreator return from savePointCreator.

Properties

db Database
database connection, It should be a class Database
final
hashCode int
The hash code for this object.
no setterinherited
name String
Name of current save pointer.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply() Future<void>
Commit to persist data
cancel() Future<void>
Discard any change happen in current transaction
exec(String sql, {Iterable? parameters}) Future<Changes>
Quick execution of sql query without holding any statment object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepare(String query, [dynamic option]) Future<Statement>
Returns a prepared statement for read/write.
query<T>(String query, {Iterable? parameters, RowCreator<T>? creator}) Future<Rows<T>>
A wrapped method around statement to execute a statement select query
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

newName String
create a new savepoint name
no setter