DatabaseApi class abstract

Implementers

Constructors

DatabaseApi()

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

execute(String sql, [List<Object?>? args]) Future<void>
Executes a SQL query with optional args. Use "?" placeholders for parameters to avoid injection vulnerabilities:
getPrimaryKeys(String table) Future<Iterable<String>>
Returns all the primary key columns in the given table.
getTables() Future<Iterable<String>>
Returns all user-created tables in the current database.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query(String sql, [List<Object?>? args]) Future<List<Map<String, Object?>>>
Performs a SQL query with optional args and returns the result as a list of column maps. Use "?" placeholders for parameters to avoid injection vulnerabilities:
toString() String
A string representation of this object.
inherited
transaction(Future<void> action(DatabaseApi txn)) Future<void>
Initiates a transaction in this database. Caution: calls to the parent crdt inside a transaction block will result in a deadlock.

Operators

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