core/storage
library
Classes
Batch
A batch is used to perform multiple operation as a single atomic unit.
A Batch object can be acquired by calling Database.batch . It provides
methods for adding operation. None of the operation will be
executed (or visible locally) until commit() is called.
CacheStorage
A utility class for performing basic file operations such as saving,
reading, and deleting files in a specified folder. Supports both text
and binary files.
Database
Database to send sql commands, created during openDatabase
DatabaseExecutor
Common API for Database and Transaction to execute SQL commands
DatabaseFactory
Basic databases operations
DbHelper
An abstract class that defines the contract for database helper implementations
using the sqflite package.
OpenDatabaseOptions
Options for opening the database
see openDatabase for details
QueryCursor
Cursor for query by page cursor.
Sqflite
sqflite plugin
SqfliteDarwin
Darwin specific implementation.
SqfliteOptions
internal options.
SqflitePlugin
sqflite Plugin registration.
SqfLiteService
A service class for managing SQLite database operations using the sqflite package.
Transaction
Database transaction
to use during a transaction
Functions
databaseExists (String path )
→ Future <bool >
Check if a database exists at a given path.
deleteDatabase (String path )
→ Future <void >
Delete the database at the given path.
getDatabasesPath ()
→ Future <String >
Get the default databases location.
onDatabaseVersionChangeError (Database db , int oldVersion , int newVersion )
→ Future <void >
to specify during openDatabase for OpenDatabaseOptions.onDowngrade
Downgrading will always fail
openDatabase (String path , {int ? version , OnDatabaseConfigureFn ? onConfigure , OnDatabaseCreateFn ? onCreate , OnDatabaseVersionChangeFn ? onUpgrade , OnDatabaseVersionChangeFn ? onDowngrade , OnDatabaseOpenFn ? onOpen , bool ? readOnly = false , bool ? singleInstance = true })
→ Future <Database >
Open the database at a given path
openReadOnlyDatabase (String path , {bool ? singleInstance = true })
→ Future <Database >
Open the database at a given path in read only mode