SqfliteApi class

Inheritance

Constructors

SqfliteApi(DatabaseExecutor _db)

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

batch() Batch
close() Future<void>
execute(String sql, [List<Object?>? args]) Future<void>
Executes a SQL query with optional args. Use "?" placeholders for parameters to avoid injection vulnerabilities:
inherited
getPrimaryKeys(String table) Future<Iterable<String>>
Returns all the primary key columns in the given table.
inherited
getTables() Future<Iterable<String>>
Returns all user-created tables in the current database.
inherited
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:
inherited
rawDelete(String sql, [List<Object?>? arguments]) Future<int>
rawInsert(String sql, [List<Object?>? arguments]) Future<int>
rawQuery(String sql, [List<Object?>? arguments]) Future<List<Map<String, Object?>>>
rawUpdate(String sql, [List<Object?>? arguments]) Future<int>
toString() String
A string representation of this object.
inherited
transaction(Future<void> action(SqfliteApi 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