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. The default value is 15 and it can be changed through the configuration API with the b7a.sql.pool.maxOpenConnections key

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

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