PoolSettings class
- Inheritance
-
- Object
- SessionSettings
- ConnectionSettings
- PoolSettings
Constructors
-
PoolSettings({int? maxConnectionCount, Duration? maxConnectionAge, Duration? maxSessionUse, int? maxQueryCount, String? applicationName, Duration? connectTimeout, SslMode? sslMode, SecurityContext? securityContext, Encoding? encoding, String? timeZone, ReplicationMode? replicationMode, StreamChannelTransformer<
Message, Message> ? transformer, Duration? queryTimeout, QueryMode? queryMode, bool? ignoreSuperfluousParameters, Future<void> onOpen(Connection connection)?, TypeRegistry? typeRegistry}) -
const
Properties
- applicationName → String?
-
finalinherited
- connectTimeout → Duration?
-
finalinherited
- encoding → Encoding?
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- ignoreSuperfluousParameters → bool?
-
When set, the default query map will not throw exception when superfluous
parameters are found.
finalinherited
- maxConnectionAge → Duration?
-
The maximum duration a connection is kept open.
New sessions won't be scheduled after this limit is reached.
final
- maxConnectionCount → int?
-
The maximum number of concurrent sessions.
final
- maxQueryCount → int?
-
The maximum number of queries to be run on a connection.
New sessions won't be scheduled after this limit is reached.
final
- maxSessionUse → Duration?
-
The maximum duration a connection is used by sessions.
New sessions won't be scheduled after this limit is reached.
final
-
onOpen
→ (Future<
void> Function(Connection connection)?) -
This callback function will be called after opening the connection.
finalinherited
- queryMode → QueryMode?
-
The Query Execution Mode
finalinherited
- queryTimeout → Duration?
-
finalinherited
- replicationMode → ReplicationMode?
-
The replication mode for connecting in streaming replication mode.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- securityContext → SecurityContext?
-
The SecurityContext to use when opening a connection.
finalinherited
- sslMode → SslMode?
-
finalinherited
- timeZone → String?
-
finalinherited
-
transformer
→ StreamChannelTransformer<
Message, Message> ? -
An optional
StreamChannelTransformer
sitting behind the postgres client as implemented in theposgres
package and the database server.finalinherited - typeRegistry → TypeRegistry?
-
When set, use the type registry with custom types, instead of the
built-in ones provided by the package.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited