Record: ConnectionPool

Represents the properties which are used to configure DB connection pool. Default values of the fields can be set through the configuration API.

Closed record

Fields

  • maxOpenConnections int(default maxOpenConnections)
  • The maximum number of open connections that the pool is allowed to have, including both idle and in-use connections. Default value is 15 and it can be changed through the configuration API with the key b7a.sql.pool.maxOpenConnections.

  • maxConnectionLifeTime decimal(default maxConnectionLifeTime)
  • The maximum lifetime (in seconds) of a connection in the pool. Default value is 1800 seconds (30 minutes) and it can be changed through the configuration API with the key b7a.sql.pool.maxConnectionLifeTime. A value of 0 indicates unlimited maximum lifetime (infinite lifetime).

  • minIdleConnections int(default minIdleConnections)
  • The minimum number of idle connections that pool tries to maintain in the pool. Default is the same as maxOpenConnections and it can be changed through the configuration API with the key b7a.sql.pool.minIdleConnections.