DBConnectionMySQL class
DBConnection for MySQL.
- Inheritance
-
- Object
- DBConnection<
MySqlConnection> - DBConnectionMySQL
Constructors
- DBConnectionMySQL.new(MySqlConnection nativeConnection)
Properties
- dialect → SQLDialect
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- nativeConnection → MySqlConnection
-
The native connection.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> -
override
-
commitTransaction(
) → Future< bool> -
Commit the transaction.
override
-
executeSQL(
SQL sql, {List< SQL> ? executedSqls}) → Future<({Object? lastID, List< Map< ? results})?>String, dynamic> > -
Executes a
sql
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rollbackTransaction(
) → Future< bool> -
Rollback the transaction.
override
-
startTransaction(
) → Future< bool> -
Starts a transaction.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
open(
DBConnectionCredential credential, {Duration? retryInterval, int? maxRetries}) → Future< DBConnectionMySQL?> - Opens a DBConnectionMySQL.
-
provider(
DBConnectionCredential credential, {int? maxConnections, Duration? retryInterval, int? maxRetries}) → DBConnectionPoolProvider< DBConnectionMySQL> - Returns a DBConnectionPoolProvider for MySQL.
-
register(
) → void - Registers a DBConnectionProvider for MySQL.