PgDatabase.opened constructor

PgDatabase.opened(
  1. PgSession connection, {
  2. bool logStatements = false,
  3. bool enableMigrations = true,
})

Creates a drift database implementation from a postgres database connection.

Implementation

PgDatabase.opened(
  PgSession connection, {
  bool logStatements = false,
  bool enableMigrations = true,
}) : super(_PgDelegate(() => connection, false, enableMigrations),
          isSequential: true, logStatements: logStatements);