PoolSettings constructor

PoolSettings({
  1. required String databaseUri,
  2. String poolName,
  3. int minConnections,
  4. int maxConnections,
  5. int limitConnections,
  6. dynamic onOpen(
    1. Connection connection
    )?,
  7. void onMaxConnection(
    1. int count
    )?,
  8. QueryCallback? onExecute,
  9. QueryCallback? onQuery,
  10. Duration startTimeout,
  11. Duration stopTimeout,
  12. Duration establishTimeout,
  13. Duration connectionTimeout,
  14. Duration idleTimeout,
  15. Duration limitTimeout,
  16. Duration maxLifetime,
  17. Duration? leakDetectionThreshold,
  18. bool testConnections,
  19. bool restartIfAllConnectionsLeaked,
  20. String? applicationName,
  21. String? timeZone,
})

Implementation

factory PoolSettings({
    required String databaseUri,
    String poolName,
    int minConnections,
    int maxConnections,
    int limitConnections,
    dynamic Function(pg.Connection connection)? onOpen,
    void Function(int count)? onMaxConnection,
    QueryCallback? onExecute,
    QueryCallback? onQuery,
    Duration startTimeout,
    Duration stopTimeout,
    Duration establishTimeout,
    Duration connectionTimeout,
    Duration idleTimeout,
    Duration limitTimeout,
    Duration maxLifetime,
    Duration? leakDetectionThreshold,
    bool testConnections,
    bool restartIfAllConnectionsLeaked,
    String? applicationName,
    String? timeZone}) = PoolSettingsImpl;