Skip to content

Commit

Permalink
Tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
webda2l committed Oct 31, 2024
1 parent 02c85ed commit df1a473
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Here's a basic example of how to use SchemQl:

<details>
<summary>1. Create your database schema and expose it with a DB interface</summary>

<br>
Tip: Use your favorite AI to generate a Zod schema from your SQL.

If using JSON data, leverage the built-in `parseJsonPreprocessor`.
Expand Down Expand Up @@ -70,7 +70,7 @@ export interface DB {

<details>
<summary>2. Initialize your instance of SchemQl with the DB interface typing</summary>

<br>
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.
Expand Down Expand Up @@ -137,7 +137,7 @@ const schemQl = new SchemQl<DB>({

<details open>
<summary>3. Use your instance of SchemQl with `.first()` / `.firstOrThrow()` / `.all()` / `.iterate()`</summary>

<br>
Simple use with resultSchema only and no SQL literal string

```typescript
Expand Down

0 comments on commit df1a473

Please sign in to comment.