From 3bae9cf5eb020d24b18711c5ec536aaddb697f8f Mon Sep 17 00:00:00 2001 From: Moshe Dicker Date: Wed, 17 Apr 2024 16:09:36 -0400 Subject: [PATCH] typos --- docs/pages/docs/Dart API/manager.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/pages/docs/Dart API/manager.md b/docs/pages/docs/Dart API/manager.md index ee1b888b..78e8522a 100644 --- a/docs/pages/docs/Dart API/manager.md +++ b/docs/pages/docs/Dart API/manager.md @@ -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 }}) 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 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' %} @@ -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' %} + ### Ordering You can also order the results of a query using the `orderBy` method. The syntax is similar to the `filter` method.