From df1a4739e3e8f47aedf1659008299381f2980069 Mon Sep 17 00:00:00 2001 From: David ALLIX Date: Thu, 31 Oct 2024 17:40:07 +0100 Subject: [PATCH] Tmp --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7015a91..d0290e3 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Here's a basic example of how to use SchemQl:
1. Create your database schema and expose it with a DB interface - +
Tip: Use your favorite AI to generate a Zod schema from your SQL. If using JSON data, leverage the built-in `parseJsonPreprocessor`. @@ -70,7 +70,7 @@ export interface DB {
2. Initialize your instance of SchemQl with the DB interface typing - +
Example with better-sqlite3, but you can use your favorite library. Here the 4 methods first/firstOrThrow/all/iterate are defined at the instance level, but you can define them at the query level if you prefer. @@ -137,7 +137,7 @@ const schemQl = new SchemQl({
3. Use your instance of SchemQl with `.first()` / `.firstOrThrow()` / `.all()` / `.iterate()` - +
Simple use with resultSchema only and no SQL literal string ```typescript