Append an OR condition inside the grouped OR clause set. Example: where('status', '=', 'active').orWhere('email', '=', 'ada@example.com').orWhere('name', '=', 'Ada') compiles to WHERE status = ? AND (email = ? OR name = ?).
orderBy(String field, [String direction = 'ASC'])
QueryBuilder
Sort results by a column.
groupBy(String field)
QueryBuilder
Group results by a column.
limit(int value), offset(int value)
QueryBuilder
Limit result size and offset.
get()
Future<List<Map<String, dynamic>>>
Execute the query and return all rows.
first()
Future<Map<String, dynamic>?>
Execute the query and return the first row.
paginate(int page, [int perPage = 15])
Future<Map<String, dynamic>>
Paginate results with totals.
insert(Map data)
Future<void>
Insert a new row (auto-generates UUIDs for string IDs).