PgPoolSettings class

Configuração de PgPool (campos nulos = sem limite, exceto maxConnectionCount, cujo padrão é 10).

Constructors

PgPoolSettings({int? maxConnectionCount, Duration? idleTestThreshold, Duration? maxConnectionAge, Duration? maxSessionUse, int? maxErrorCount, int? maxQueryCount})

Properties

hashCode → int
The hash code for this object.
no setterinherited
idleTestThreshold → Duration?
Uma conexão ociosa por mais tempo que isso é testada (SELECT 1) antes de ser usada.
final
maxConnectionAge → Duration?
Conexões abertas há mais tempo que isso não são reutilizadas.
final
maxConnectionCount → int?
Número máximo de conexões abertas ao mesmo tempo (padrão: 10).
final
maxErrorCount → int?
Conexões cujas sessões falharam esse número de vezes não são reutilizadas.
final
maxQueryCount → int?
Conexões usadas por esse número de sessões (run, runTx, execute ou withConnection do pool) não são reutilizadas.
final
maxSessionUse → Duration?
Conexões usadas por mais tempo que isso (somando as sessões) não são reutilizadas.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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