run<R> method

Future<R> run<R>(
  1. Future<R> fn(
    1. PostgreSQLExecutionContext ctx
    ), {
  2. PgRetryOptions? retryOptions,
})

Executa fn fora de transação, com uma conexão exclusiva (ver withConnection).

Implementation

Future<R> run<R>(Future<R> Function(PostgreSQLExecutionContext ctx) fn,
        {PgRetryOptions? retryOptions}) =>
    withConnection(fn, retryOptions: retryOptions);