databaseConnection function

Future<Database> databaseConnection (
  1. {int version,
  2. OnDatabaseConfigureFn onConfigure,
  3. OnDatabaseCreateFn onCreate,
  4. OnDatabaseVersionChangeFn onUpgrade,
  5. OnDatabaseVersionChangeFn onDowngrade,
  6. OnDatabaseOpenFn onOpen,
  7. bool readOnly: false,
  8. bool singleInstance: true}
)

Implementation

Future<Database> databaseConnection(
    {int version,
    OnDatabaseConfigureFn onConfigure,
    OnDatabaseCreateFn onCreate,
    OnDatabaseVersionChangeFn onUpgrade,
    OnDatabaseVersionChangeFn onDowngrade,
    OnDatabaseOpenFn onOpen,
    bool readOnly = false,
    bool singleInstance = true}) {
  return DB.getConnetion(
      version: version,
      onConfigure: onConfigure,
      onCreate: onCreate,
      onUpgrade: onUpgrade,
      onDowngrade: onDowngrade,
      onOpen: onOpen,
      readOnly: readOnly,
      singleInstance: singleInstance);
}