Interface for database connections provided by plugins.
Plugin authors must implement this interface to support new database backends.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schemaManager → SchemaManager
-
Provides access to SchemaManager for DDL operations and migrations.
no setter
Methods
-
beginTransaction(
) → Future< Transaction> - Starts a new transaction manually.
-
close(
) → Future< void> - Closes the underlying connection or pool.
-
execute(
String sql, [Map< String, dynamic> ? params]) → Future<QueryResult> - Executes a raw SQL query and returns the results as a QueryResult.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
stream(
String sql, [Map< String, dynamic> ? params]) → Stream<Map< String, dynamic> > - Executes a raw SQL query and returns a stream of rows.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited