open static method
Opens the configured database and checks SQLite 3.35 or newer.
Unsupported storage choices and platform capabilities fail before a usable driver is returned. Inspect capabilities for cancellation support.
Implementation
static Future<SqliteDriver> open(SqliteOptions options) async {
final opened = await connectSqlite(options);
if (opened.version < 3035000) {
await opened.close();
throw const OrmException(
'CAPABILITY.VERSION',
'SQLite 3.35 or newer is required.',
);
}
return SqliteDriver._(opened.connection, opened.capabilities, opened.close);
}