Database class

Database represents an open connection to a SQLite database.

All functions against a database may throw SQLiteError.

This database interacts with SQLite synchonously.

Constructors

Database(String path, [int flags = Flags.SQLITE_OPEN_READWRITE | Flags.SQLITE_OPEN_CREATE])
Open a database located at the file path.

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
Close the database.
execute(String query) → void
Execute a query, discarding any returned rows.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query(String query) Result
Evaluate a query and return the resulting rows as an iterable.
toString() String
A string representation of this object.
inherited

Operators

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