The model class this query resolves to.
Executes the query and returns all matching records.
Array of model instances (empty array if none found)
Counts the rows matching the current filters.
Number of matching records
Returns true if at least one record matches the current filters.
Looks up a single record by its id column.
The unique string identifier
The matching record, or null if not found
Returns the first record by insertion order, or null if none found.
Returns the last record by insertion order, or null if none found.
Immutable chainable query builder over a SQLite table.
Every method that filters or sorts returns a new
Queryinstance, so the original is never mutated. Call a terminal method (all,first,last,find,count,exists) to execute the query.Example