SqlPool

SqlPool

new SqlPool(options, defaults)

Description:
  • Create a database pool for SQL like databases, see dbPool

Parameters:
Name Type Description
options object

an object defining the pool, the following properties define the pool:

Properties
Name Type Description
pool string

pool name/type, if not specified the SQLite is used

max int

max number of clients to be allocated in the pool

idle int

after how many milliseconds an idle client will be destroyed

defaults object

an object with default pool methods for init and shutdown and other properties, see Pool