mirror of https://github.com/AMT-Cheif/drift.git
typos
This commit is contained in:
parent
3c39d8456b
commit
3bae9cf5eb
|
@ -18,10 +18,14 @@ make common queries much easier to write.
|
||||||
The examples on this page use the database from the [setup]({{ '../setup.md' | pageUrl }})
|
The examples on this page use the database from the [setup]({{ '../setup.md' | pageUrl }})
|
||||||
instructions.
|
instructions.
|
||||||
|
|
||||||
|
When manager generation is enabled (default), drift will generate a manager for each table in the database.
|
||||||
|
A collection of these managers are accessed by a getter `managers` on the database class.
|
||||||
|
Each table will have a manager generated for it unless it uses a custom row class.
|
||||||
|
|
||||||
## Select
|
## Select
|
||||||
|
|
||||||
The manager simplifies the process of retrieving rows from a table. Use it to read rows from the table or watch
|
The manager simplifies the process of retrieving rows from a table. Use it to read rows from the table or watch
|
||||||
for changes to the table.
|
for changes.
|
||||||
|
|
||||||
{% include "blocks/snippet" snippets = snippets name = 'manager_select' %}
|
{% include "blocks/snippet" snippets = snippets name = 'manager_select' %}
|
||||||
|
|
||||||
|
@ -49,6 +53,7 @@ Use the `@ReferenceName(...)` on the foreign key to specify a custom name for th
|
||||||
|
|
||||||
{% include "blocks/snippet" snippets = snippets name = 'reference_name_example' %}
|
{% include "blocks/snippet" snippets = snippets name = 'reference_name_example' %}
|
||||||
|
|
||||||
|
|
||||||
### Ordering
|
### Ordering
|
||||||
|
|
||||||
You can also order the results of a query using the `orderBy` method. The syntax is similar to the `filter` method.
|
You can also order the results of a query using the `orderBy` method. The syntax is similar to the `filter` method.
|
||||||
|
|
Loading…
Reference in New Issue