DBConnectionPostgres class
DBConnection for PostgreSQL.
- Inheritance
-
- Object
- DBConnection<
PostgreSQLConnection> - DBConnectionPostgres
Constructors
- DBConnectionPostgres.new(PostgreSQLConnection nativeConnection)
Properties
- dialect → SQLDialect
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- nativeConnection → PostgreSQLConnection
-
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
-
resolveTableIDFieldName(
String table) → FutureOr< String> -
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< DBConnectionPostgres?> - Opens a DBConnectionPostgres.
-
provider(
DBConnectionCredential credential, {int? maxConnections, Duration? retryInterval, int? maxRetries}) → DBConnectionPoolProvider< DBConnectionPostgres> - Returns a DBConnectionPoolProvider for PostgreSQL.
-
register(
) → void - Registers a DBConnectionProvider for PostgreSQL.