DriverAdapter class abstract

Handles the lifecycle of connections and query execution for a specific backend.

Implemented types

Constructors

DriverAdapter()

Properties

codecs ValueCodecRegistry
Registry of codecs used when marshalling values.
no setter
hashCode int
The hash code for this object.
no setterinherited
metadata DriverMetadata
Advertises the capabilities supported by this adapter.
no setter
planCompiler PlanCompiler
Compiler used by this adapter to translate ORM plans.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

beginTransaction() Future<void>
Begins a new database transaction.
close() Future<void>
Closes the underlying connections/resources.
commitTransaction() Future<void>
Commits the active database transaction.
describeMutation(MutationPlan plan) StatementPreview
Provides a statement preview for a mutation plan without executing it.
describeQuery(QueryPlan plan) StatementPreview
Provides a statement preview for a read plan without executing it.
execute(QueryPlan plan) Future<List<Map<String, Object?>>>
Resolves plan into raw rows where each map represents one record.
inherited
executeRaw(String sql, [List<Object?> parameters = const []]) Future<void>
Executes an arbitrary SQL statement that does not return rows.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryRaw(String sql, [List<Object?> parameters = const []]) Future<List<Map<String, Object?>>>
Executes a raw SQL query and returns the resulting rows.
rollbackTransaction() Future<void>
Rolls back the active database transaction.
runMutation(MutationPlan plan) Future<MutationResult>
Executes a structured mutation plan (insert/update/delete).
stream(QueryPlan plan) Stream<Map<String, Object?>>
Streams rows for plan. Drivers may override to avoid buffering.
inherited
threadCount() Future<int?>
Returns the number of open connections reported by the backend, when supported.
toString() String
A string representation of this object.
inherited
transaction<R>(Future<R> action()) Future<R>
Starts a new transaction boundary.
truncateTable(String tableName) Future<void>
Truncates a table, removing all rows and resetting auto-increment counters.

Operators

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