SqliteWriteContext class abstract
Abstract class representing calls available in a read-write context.
- Inheritance
-
- Object
- SqliteReadContext
- SqliteWriteContext
- Implementers
Constructors
Properties
Methods
-
computeWithDatabase<
T> (Future< T> compute(CommonDatabase db)) → Future<T> -
Run a function within a database isolate, with direct synchronous access
to the underlying database.
inherited
-
execute(
String sql, [List< Object?> parameters = const []]) → Future<ResultSet> - Execute a write query (INSERT, UPDATE, DELETE) and return the results (if any).
-
executeBatch(
String sql, List< List< parameterSets) → Future<Object?> >void> - Execute a write query (INSERT, UPDATE, DELETE) multiple times with each parameter set. This is faster than executing separately with each parameter set.
-
get(
String sql, [List< Object?> parameters = const []]) → Future<Row> -
Execute a read-only (SELECT) query and return a single result.
inherited
-
getAll(
String sql, [List< Object?> parameters = const []]) → Future<ResultSet> -
Execute a read-only (SELECT) query and return the results.
inherited
-
getAutoCommit(
) → Future< bool> -
Returns true if auto-commit is enabled. This means the database is not
currently in a transaction. This may be true even if a transaction lock
is still held, when the transaction has been committed or rolled back.
inherited
-
getOptional(
String sql, [List< Object?> parameters = const []]) → Future<Row?> -
Execute a read-only (SELECT) query and return a single optional result.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited