From ac5336226eb00351ac2bc3e26379684c00b27813 Mon Sep 17 00:00:00 2001 From: Philipp Doerner Date: Fri, 8 Sep 2023 16:49:08 +0200 Subject: [PATCH] update --- book/tutorial/{rowsComplex.nim => rowsAdvanced.nim} | 7 ++++--- nbook.nim | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) rename book/tutorial/{rowsComplex.nim => rowsAdvanced.nim} (89%) diff --git a/book/tutorial/rowsComplex.nim b/book/tutorial/rowsAdvanced.nim similarity index 89% rename from book/tutorial/rowsComplex.nim rename to book/tutorial/rowsAdvanced.nim index 0e10cc43..f182bf29 100644 --- a/book/tutorial/rowsComplex.nim +++ b/book/tutorial/rowsAdvanced.nim @@ -8,8 +8,8 @@ nbInit(theme = useNimibook) nbText: """ # More complex queries Norm allows you to sort, limit use subqueries for complex where clauses and more. -To understand how, it helps to keep in mind that norm essentially generates SQL queries after the following pattern: - `SELECT FROM WHERE `. +To understand how, it helps to keep in mind that norm essentially generates SQL SELECT queries after the following pattern: +`SELECT FROM WHERE ` This means that whatever pieces of SQL come after the WHERE keyword are thing you can freely specify if need be. @@ -55,7 +55,8 @@ nbCode: nbText: """ ## Using Subqueries -Similarly as to ORDER BY, you can also use subqueries withint he WHERE block: +Similarly as to ORDER BY, you can also use subqueries within the WHERE block: + """ nbCode: var subqueryCustomersFoo = @[newCustomer()] diff --git a/nbook.nim b/nbook.nim index 1e9cd660..0b6801aa 100644 --- a/nbook.nim +++ b/nbook.nim @@ -7,7 +7,7 @@ var book = initBookWithToc: section("Tutorial", "tutorial.nim"): entry("Tables", "tutorial/tables.nim") entry("Simple Queries", "tutorial/rows.nim") - entry("Complex Select Queries", "tutorial/rowsComplex.nim") + entry("Advanced Queries", "tutorial/rowsAdvanced.nim") entry("Many-To-One/Many Queries", "tutorial/rowsManyToX.nim") entry("Raw SQL interactions", "tutorial/rawSelects.nim") entry("Row Caveats", "tutorial/rowCaveats.nim")