AsyncPool.execTransaction

Performs several SQL commands on single connection wrapped in a transaction (BEGIN/COMMIT in PostgreSQL). Each command should use '$n' notation to refer params values. Before any command occurs in transaction the local SQL variables is set from vars.

class AsyncPool
InputRange!(immutable Bson)
execTransaction
shared
(
string[] commands
,
string[] params = []
,
uint[] argnums = []
,
string[string] vars = null
,
bool[] oneRowConstraint = []
)

Throws

ConnTimeoutException, QueryProcessingException

Meta