createSession method

Future<InternalSession> createSession({
  1. bool enableLogging = true,
})

Creates a new InternalSession. Used to access the database and do logging outside of sessions triggered by external events. If you are creating a Session you are responsible of calling the close method when you are done.

Implementation

Future<InternalSession> createSession({bool enableLogging = true}) async {
  var session = InternalSession(
    server: server,
    enableLogging: enableLogging,
  );
  return session;
}