openTransaction method
Future
openTransaction(
- Future queryBlock(
- PostgreSQLConnectionTransactionWrapper connection
- int? commitTimeoutInSeconds,
Implementation
Future openTransaction(
Future Function(PostgreSQLConnectionTransactionWrapper connection)
queryBlock, {
int? commitTimeoutInSeconds,
}) {
var conn = nativeConnection as PostgreSQLConnection;
updateLastAccessTime();
return conn.transaction((transactionContext) => queryBlock(
PostgreSQLConnectionTransactionWrapper(this, transactionContext)));
}