We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider this scenario:
sql.fragment`SELECT ${'a'}, ${'a'}, ${'a'}`
The resulting object is:
SELECT $1, $2, $3
with values ['a', 'a', 'a']
['a', 'a', 'a']
I wish we had a way to re-use the same value binding, e.g.
const value = sql.value('a'); sql.fragment`SELECT ${value}, ${value}, ${value}`
With the outcome of:
SELECT $1, $1, $1
and values ['a']
['a']
The text was updated successfully, but these errors were encountered:
Hi, could I work on this one?
Sorry, something went wrong.
What if we consider, e.g. nested sql.fragments, like in the simplified example:
const value = sql.value('a'); const nestedFragment = sql.fragment`SELECT ${value}` sql.fragment` SELECT ${value}, ${value}, ${value}, ${nestedFragment} `
I understand that an example like this would also re-use the same value binding and produce the values ['a']?:
No branches or pull requests
Consider this scenario:
The resulting object is:
with values
['a', 'a', 'a']
I wish we had a way to re-use the same value binding, e.g.
With the outcome of:
and values
['a']
The text was updated successfully, but these errors were encountered: