Pool

A pool of SQL connections.

@author <a href="mailto:julien@julienviet.com">Julien Viet</a>

Members

Functions

available
int available()
Undocumented in source.
begin
Transaction begin()

Borrow a connection from the pool and begin a transaction, the underlying connection will be returned to the pool when the transaction ends.

close
void close()

Close the pool and release the associated resources.

getConnection
SqlConnection getConnection()

Get a connection from the pool.

maxSize
int maxSize()
Undocumented in source.
size
int size()
Undocumented in source.
waiters
int waiters()
Undocumented in source.

Inherited Members

From SqlClient

query
SqlClient query(string sql, RowSetHandler handler)

Execute a simple query.

queryAsync
Future!RowSet queryAsync(string sql)
Undocumented in source.
query
RowSet query(string sql)
Undocumented in source.
preparedQuery
SqlClient preparedQuery(string sql, RowSetHandler handler)

Prepare and execute a query.

preparedQuery
SqlClient preparedQuery(string sql, Tuple arguments, RowSetHandler handler)

Prepare and execute a query.

preparedBatch
SqlClient preparedBatch(string sql, List!(Tuple) batch, RowSetHandler handler)

Prepare and execute a createBatch.

close
void close()

Close the client and release the associated resources.

Meta