Module mysql.impl.pool

Connect to a MySQL/MariaDB database using a connection pool.

This provides various benefits over creating a new connection manually, such as automatically reusing old connections, and automatic cleanup (no need to close the connection when done).

Internally, this is based on vibe.d's ConnectionPool. You have to include vibe.d in your project to be able to use this class. If you don't want to, refer to mysql.connection.Connection.

WARNING

This module is used to consolidate the common implementation of the safe and unafe API. DO NOT directly import this module, please import one of mysql.pool, mysql.safe.pool, or mysql.unsafe.pool. This module will be removed in a future version without deprecation.

See the Safe Migration document for more details.

Classes

NameDescription
ConnectionPool Vibe.d's ConnectionPool class.
MySQLPoolImpl Connect to a MySQL/MariaDB database using a connection pool.

Structs

NameDescription
LockedConnection Vibe.d's LockedConnection struct.