MySQLPool

A lightweight interface to a MySQL/MariaDB database using 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.

Constructors

this
this(string host, string user, string password, string database, ushort port, uint maxConcurrent, SvrCapFlags capFlags)
this(string host, string user, string password, string database, ushort port, SvrCapFlags capFlags)
this(string connStr, uint maxConcurrent, SvrCapFlags capFlags)
this(string connStr, SvrCapFlags capFlags)

Sets up a connection pool with the provided connection settings.

Members

Functions

lockConnection
auto lockConnection()

Obtain a connection. If one isn't available, a new one will be created.

Properties

maxConcurrency
uint maxConcurrency [@property getter]
uint maxConcurrency [@property setter]

Forwards to vibe.d's ConnectionPool.maxConcurrency

Meta