We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dea953 commit c698f37Copy full SHA for c698f37
README.md
@@ -339,6 +339,17 @@ sql`
339
select "id" from "users"
340
```
341
342
+### Quick Primer
343
+
344
+Here's a quick oversight over all the ways do interpolation in a query template string.
345
346
+| Interpolation syntax | Usage | Example |
347
+| ------------- | ------------- | ------------- |
348
+| `${ sql`` }` | for one or more keywords or sql (fragments) | const orderClause = `sql`` ` ``order by age desc`` ` ``` |
349
+| `${ sql(string) }` | for identifiers | `sql('table_name')` |
350
+| `${ sql([] or {}, ...) }` | for helpers | `` |
351
+| `${ 'somevalue' }` | for values | `sql``` |
352
353
## Advanced query methods
354
355
### Cursors
0 commit comments