PgConnection class abstract

Implemented types

Constructors

PgConnection()

Properties

channels PgChannels
no setter
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

Operators

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

Static Methods

open(PgEndpoint endpoint, {PgSessionSettings? sessionSettings}) Future<PgConnection>