SqliteDatabase class abstract interface

An open SQLite database. All methods are synchronous: the underlying FFI calls are synchronous too.

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

close() → void
Closes the database.
execute(String sql) → void
Runs sql without returning rows (e.g. PRAGMA).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parameterCount(String sql) int
The number of bound parameters sql expects.
select(String sql, {List<Object?> parameters = const [], int? maxRows}) SqliteRows
Runs sql with positional parameters and returns the rows. When maxRows is given, iteration stops after that many rows and SqliteRows.truncated reports whether more were available.
toString() String
A string representation of this object.
inherited

Operators

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