Skip to content

Conversation

@dgraham
Copy link
Member

@dgraham dgraham commented Aug 9, 2022

Provide an object with replacement parameter values to be substituted for names beginning with a colon.

conn.execute('select 1 from dual where 1=:id', { id: 42 }) // => select 1 form dual where 1=42
Provide an object with replacement parameter values to be substituted for names beginning with a colon. ```js conn.execute('select 1 from dual where 1=:id', { id: 42 }) // => select 1 form dual where 1=42 ```
@dgraham dgraham requested a review from iheanyi August 9, 2022 16:08
Replace only known parameter names so colon syntax operators like `:=` are not replaced.
@dgraham dgraham merged commit 75d91cb into main Aug 9, 2022
@dgraham dgraham deleted the named-parameters branch August 9, 2022 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants