MutableDatabaseConnection class final

ORM connection over a MutableSqliteDatabase.

Inheritance

Constructors

MutableDatabaseConnection(MutableSqliteDatabase database, {bool closeDatabase = false})
Uses database. Closes it on close only when closeDatabase is true.

Properties

changeFeed → SqlitePlusChanges?
no setterinherited
closeDatabase → bool
Whether close also closes database.
final
database → MutableSqliteDatabase
Engine database this connection forwards to.
final
engineDatabase → MutableSqliteDatabase
Optional same-isolate engine capability; null for RPC/custom connections.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
inTransaction → bool
Whether this connection has an open transaction.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportsEnginePreparation → bool
Adapters must opt in explicitly so wrappers never lose capture/inspection.
no setteroverride
usesSaveTransactionDriver → bool
no setterinherited

Methods

claim(Object owner) → void
Gives owner exclusive use of this connection.
inherited
close() → Future<void>
Closes the connection. The owner must already have released it.
override
exclusive<R>(Future<R> action(), {bool schemaChange = false}) → Future<R>
inherited
execute(String sql, [List<Object?> parameters = const []]) → Future<MutationResult>
Runs a statement that changes rows.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepareCommand(String sql) → Future<OrmPreparedCommand>
inherited
query(String sql, [List<Object?> parameters = const []]) → Future<QueryResult>
Runs a statement that returns rows.
override
release(Object owner) → void
Drops the claim held by owner.
inherited
toString() → String
A string representation of this object.
inherited
transaction(Future<void> action(), {void onCommitting()?}) → Future<void>
Own a complete save transaction. Adapters may replace the BEGIN/COMMIT path, while preserving callback ordering and rolling back failed work.
inherited

Operators

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

Static Methods

openMemory() → Future<MutableDatabaseConnection>
Opens an in-memory engine database and closes it with this connection.