DBConnection<T> class
abstract
- Implementers
Constructors
- DBConnection.new(T nativeConnection, SQLDialect dialect)
Properties
- dialect → SQLDialect
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- nativeConnection → T
-
The native connection.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> -
commitTransaction(
) → Future< bool> - Commit the transaction.
-
executeSQL(
SQL sql, {List< SQL> ? executedSqls}) → Future<({Object? lastID, List< Map< ? results})?>String, dynamic> > -
Executes a
sql
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rollbackTransaction(
) → Future< bool> - Rollback the transaction.
-
startTransaction(
) → Future< bool> - Starts a transaction.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
openConnection<
C extends DBConnection> (DBConnectionCredential credential, Future< C?> opener(DBConnectionCredential credential), {Duration retryInterval = const Duration(seconds: 1), int maxRetries = 10}) → Future<C?>