SqlTransaction class
A transaction obtained from SqlClient.
An example:
await sqlClient.runInTransaction((transaction) {
// ...
});
- Inheritance
-
- Object
- SqlClientBase
- SqlTransaction
Constructors
-
SqlTransaction(DatabaseAdapter _databaseAdapter, Future<
bool> isSuccess)
Properties
Methods
-
createTable(
String tableName) → Future< void> -
Creates a SQL table.
inherited
-
dropTable(
String tableName) → Future< void> -
Drops a SQL table.
inherited
-
execute(
String sql, [List arguments]) → Future< SqlStatementResult> -
Performs a SQL statement. The SQL statement should be INSERT, UPDATE,
DELETE, or a schema changing statement such as CREATE.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
query(
String sql, [List arguments]) → SqlClientTableQueryHelper -
Performs a SQL query. The SQL statement should be a SELECT statement.
inherited
-
rawExecute(
SqlStatement sqlSource) → Future< SqlStatementResult> -
Sends SQL statement. Unlike execute, takes SqlStatement as argument.
override
-
rawQuery(
SqlStatement sqlSource) → Future< SqlIterator> -
Sends SQL query. Unlike query, takes SqlStatement as argument.
override
-
table(
String name) → SqlClientTableHelper -
Returns a helper for building SQL statements.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited