Pool class Null safety

A connection pool for PostgreSQL database connections.

Constructors

Pool(String databaseUri, {String? poolName, int? minConnections, int? maxConnections, int? limitConnections, void onMaxConnection(int count)?, void onExecute(String sql, dynamic values)?, void onQuery(String sql, dynamic values)?, Duration? startTimeout, Duration? stopTimeout, Duration? establishTimeout, Duration? connectionTimeout, Duration? idleTimeout, Duration? limitTimeout, Duration? maxLifetime, Duration? leakDetectionThreshold, bool? testConnections, bool? restartIfAllConnectionsLeaked, String? applicationName, String? timeZone, TypeConverter? typeConverter})
See PoolSettings for a description of settings.
factory
Pool.fromSettings(PoolSettings settings, {TypeConverter? typeConverter})
factory

Properties

busyConnectionCount int
Number of busy connections.
read-only
connections List<PooledConnection>
read-only
hashCode int
The hash code for this object.
read-onlyinherited
maxConnectionCount int
The maximal number of concurrent connections that are ever made since started.
read-only
messages Stream<Message>
read-only
pooledConnectionCount int
Number of the pooled connections.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
state PoolState
read-only
typeConverter TypeConverter
The type converter for encoding and decoding values between Dart and database.
read-only
waitQueueLength int
read-only

Methods

connect() Future<Connection>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
start() Future
stop() Future
toString() String
A string representation of this object.
inherited

Operators

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