createDriver
Creates a database driver from a direct file path. Opens the database directly without copying.
Deprecated
Use createDriver(filePath: String) instead to open databases directly without copying
Replace with
createDriver(filePath)Creates a database driver from assets. Copies the database from assets to the app's database directory.
Creates a database driver from a direct file path. Opens the database directly without copying.
Deprecated
Use createDriver(filePath: String) instead to open databases directly without copying
Replace with
createDriver(filePath)Creates a database driver from bundle. Copies the database from bundle to Application Support directory.
Creates a platform-specific SQLite database driver from a direct file path. No copying occurs - the database is opened directly from the provided path in read-only mode.
Return
A platform-specific SqlDriver implementation
Parameters
The absolute file path to the database file
Deprecated
Use createDriver(filePath: String) instead to open databases directly without copying
Replace with
createDriver(filePath)Creates a platform-specific SQLite database driver from assets/bundle. The database file will be copied from assets/bundle to a writable location.
Return
A platform-specific SqlDriver implementation
Parameters
The name of the database file in assets/bundle
Whether to replace the existing database with a new one
Callback to handle completion of driver creation