Simple Queries​
Simple queries can be executed directly on the litdb driver APIs, the different APIs available based on whether the query is expected to return multiple rows, a single row, a single value, a single column, etc.
SELECT Query Builder​
$.from(Table)
is used to create a SELECT query builder which by default selects all known columns of the data model.
Typed Selects​
When a custom select is needed you can use select function to specify the columns to select. All tables and columns using typed references are automatically quoted.
Aliases​
A table alias can be specified in $.from()
, with the .as()
method or by using $.ref()
to
create a table reference.
Select a list of Properties or Columns​
The props
option can be used to select a list of properties from the data model where any aliases would be used if defined,
whilst the columns
option can be used to select a list of RDBMS columns from the table.