Class: Pool

vertx-sql-client-js/pool~ Pool

new Pool()

A pool of SQL connections.
Source:

Methods

begin(handler)

Borrow a connection from the pool and begin a transaction, the underlying connection will be returned to the pool when the transaction ends.
Parameters:
Name Type Description
handler function
Source:

close()

Close the pool and release the associated resources.
Source:

getConnection(handler)

Get a connection from the pool.
Parameters:
Name Type Description
handler function the handler that will get the connection result
Source:

preparedBatch(sql, batch, handler) → {Pool}

Parameters:
Name Type Description
sql string
batch Array.<Tuple>
handler function
Source:
Returns:
Type
Pool

preparedQuery(sql, arguments, handler) → {Pool}

Parameters:
Name Type Description
sql string
arguments Tuple
handler function
Source:
Returns:
Type
Pool

query(sql, handler) → {Pool}

Parameters:
Name Type Description
sql string
handler function
Source:
Returns:
Type
Pool