Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
webda2l authored Oct 15, 2024
1 parent 5405280 commit 15309fd
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 @@ -22,7 +22,7 @@ SchemQl is ideal for developers who appreciate the power of raw SQL but want add
This library relies solely on [Zod](https://github.com/colinhacks/zod), though future development could include support for [@effect/schema](https://effect.website/docs/guides/schema/getting-started) as well.


![image](https://github.com/user-attachments/assets/02d38804-0a3c-402d-a7c0-01225c56654b)
![image](https://github.com/user-attachments/assets/f7ba64eb-87fc-43ab-a4ab-938752e56029)



Expand Down Expand Up @@ -195,8 +195,8 @@ const firstSession = await schemQl.firstOrThrow({

## Literal String SQL Helpers

| Helper Syntax | Raw SQL Result | Description |
|--------------------------------:|-----------------------:|--------------------------------------------------|
| Helper Syntax | Raw SQL Result | Description |
|:--- | :---: | :--- |
| ${'@table1'} | table1 | Prefix `@` eases table selection/validation |
| ${'@table1.col1'} | table1.col1 | ... and column selection/validation |
| ${'@table1.col1-'} | col1 | ... ending `-` excludes the table name (Useful when table renamed) |
Expand Down

0 comments on commit 15309fd

Please sign in to comment.