QueryDelegate class abstract

An interface which can execute sql statements.

Implementers

Constructors

QueryDelegate()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runBatched(BatchedStatements statements) Future<void>
Runs multiple statements without having to prepare the same statement multiple times.
runCustom(String statement, List<Object?> args) Future<void>
Runs a custom statement with the given args. Ignores all results, but throws when the statement can't be executed.
runInsert(String statement, List<Object?> args) Future<int>
Prepares and executes the statement with the variables bound to args. The statement will be an INSERT statement.
runSelect(String statement, List<Object?> args) Future<QueryResult>
Prepares and executes the statement, binding the variables to args. Its safe to assume that the statement is a select statement, the QueryResult that it returns should be returned from here.
runUpdate(String statement, List<Object?> args) Future<int>
Prepares and executes the statement with the variables bound to args. The statement will either be an UPDATE or DELETE statement.
toString() String
A string representation of this object.
inherited

Operators

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