RawQuery class

Execute raw SQL queries with parameterization

Constructors

RawQuery(DatabaseConnection _connection, String sql, [Map<String, dynamic> parameters = const {}])

Properties

hashCode → int
The hash code for this object.
no setterinherited
parameters → Map<String, dynamic>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sql → String
final

Methods

execute() → Future<List<Map<String, dynamic>>>
Execute query and return rows as maps
executeFirstOrDefault() → Future<Map<String, dynamic>?>
Execute query returning first result
executeNonQuery() → Future<int>
Execute non-query (INSERT, UPDATE, DELETE)
executeScalar() → Future
Execute scalar query (single value)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toSql() → String
Get generated SQL with parameters
toString() → String
A string representation of this object.
inherited

Operators

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