connect static method
Implementation
static Future<sqlite.Database> connect(String domain) async {
_config ??= const LiteDatabaseConfig();
if (_config!.sqliteDisabled) {
_dbFuture = Future(() => NullDatabaseConnection());
return _dbFuture!;
}
await closeIfConnected();
_lockDuration = _config!.lockDuration;
_dbFuture = _openDatabase(
domain,
version: _config!.version,
onCreate: _config!.onCreate,
onUpgrade: _config!.onUpgrade,
onDowngrade: _config!.onDowngrade,
);
LOG.printInfo("Database connection established");
return _dbFuture!;
}