PgPool class abstract

Implemented types

Constructors

PgPool(List<PgEndpoint> endpoints, {PgSessionSettings? sessionSettings, PgPoolSettings? poolSettings})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
Closes this session, cleaning up resources and forbiding further calls to prepare and execute.
inherited
execute(Object query, {Object? parameters, bool ignoreRows = false, QueryMode? queryMode}) Future<PgResult>
Executes the query with the given parameters.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepare(Object query) Future<PgStatement>
Prepares a reusable statement from a query.
inherited
run<R>(Future<R> fn(PgSession session)) Future<R>
Obtains a PgSession capable of running statements and calls fn with it.
inherited
runTx<R>(Future<R> fn(PgSession session)) Future<R>
Obtains a PgSession running in a transaction and calls fn with it.
inherited
toString() String
A string representation of this object.
inherited
withConnection<R>(Future<R> fn(PgConnection connection), {PgSessionSettings? sessionSettings}) Future<R>
Acquires a connection from this pool, opening a new one if necessary, and calls fn with it.

Operators

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