yasuki_core.database.init_pool#

init_pool(min_size=2, max_size=20)[source]#

Initialize the module-level connection pool.

Safe to call multiple times; subsequent calls are no-ops if the pool is already open.

Parameters:
min_sizeint

Minimum number of idle connections kept in the pool

max_sizeint

Maximum number of connections the pool will open