SqliteDatabase class final

A native SQLite database with serialized access that enables and verifies foreign-key enforcement when opening each connection.

Implemented types

Constructors

SqliteDatabase.open(String path)
Opens the SQLite database at path.
factory
SqliteDatabase.openInMemory()
Opens a private in-memory SQLite database.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

applyMigrations(Iterable<SqliteMigration> migrations) → Future<int>
Applies pending native SQLite migrations in numeric order.
atomicWrite(List<BoundSql> statements) → Future<List<SqlWriteResult>>
Executes transaction-safe DML statements as one atomic write batch.
override
close() → Future<void>
Releases resources owned by this database.
override
execute(BoundSql statement) → Future<SqlWriteResult>
Executes one write statement.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query<T>(BoundSql statement, T decode(SqlRow row)) → Future<List<T>>
Executes a row-returning statement and decodes every row in order.
override
toString() → String
A string representation of this object.
inherited
transaction<T>(Future<T> action(SqlExecutor transaction)) → Future<T>
Runs action inside one database transaction.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited