MysqlDriver class final
One physical connection. Whole leases are queued, including transactions. Create additional drivers explicitly when independent concurrent leases are required. Closing drains all leases accepted before close was called.
- Implemented types
-
- Driver<
B>
- Driver<
Properties
- capabilities → Capabilities
-
Features and limits exposed by this adapter and its actual backend.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverVersion → String
-
Server version returned during the verified connection handshake.
finalinherited
Methods
-
close(
) → Future< void> -
Rejects new leases, drains accepted work, and closes the connection.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run<
R> (Future< R> action(SqlConnection)) → Future<R> -
Runs
actionexclusively and rolls back any transaction left open.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
open(
MysqlOptions options) → Future< MysqlDriver> - Opens MySQL 8.4 or newer and configures UTC and strict SQL behavior.