Skip to content

Commit 8e68fed

Browse files
committed
Add toTaggedTemplate helper
1 parent 2cb7ae2 commit 8e68fed

File tree

4 files changed

+2364
-346
lines changed

4 files changed

+2364
-346
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ The `whereFragmentBuilder`/`orderByFragmentBuilder` objects provide the followin
163163

164164
- `withArrayBindings`: This returns `bindings` as an array. The first argument takes a string placeholder (default: `?`), or a function that receives the index and returns a string.
165165
- `withObjectBindings`: This returns a `bindings` object. You need to provide a function that receives the index and returns a string.
166+
- `toTaggedTemplate`: This is intended to take a tagged template function. Useful if you have an `sql` tagged template which expects the bindings as expressions.
166167

167168
## Errors
168169

0 commit comments

Comments
 (0)