QueryBuilder class
A simple SQL query builder for MySQL/PostgreSQL in Flint Dart.
Constructors
- QueryBuilder({required String table})
Properties
Methods
-
delete(
) → Future< void> - DELETE
-
first(
) → Future< Map< String, dynamic> ?> - Fetch first row
-
get(
) → Future< List< Map< >String, dynamic> > - Fetch all rows
-
insert(
Map< String, dynamic> data, {String idColumn = 'id'}) → Future<void> - INSERT
-
limit(
int value) → QueryBuilder - LIMIT
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
select(
[List< String> ? fields]) → QueryBuilder - SELECT fields
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
Map< String, dynamic> data) → Future<void> - UPDATE
-
where(
String field, String operator, dynamic value) → QueryBuilder - WHERE clause
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited