run<R> abstract method

Future<R> run<R>(
  1. Future<R> fn(
    1. Session session
    ), {
  2. SessionSettings? settings,
})
inherited

Obtains a Session capable of running statements and calls fn with it.

Returns the result (either the value or an error) of invoking fn. No updates will be reverted in the event of an error.

Implementation

Future<R> run<R>(
  Future<R> Function(Session session) fn, {
  SessionSettings? settings,
});