mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
doc: clarify sqlite bare parameter default
Signed-off-by: skdas20 <skdas5405@gmail.com> PR-URL: https://github.com/nodejs/node/pull/62009 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
1 parent
132c578e97
commit
003a913799
1 file changed
+6
-6
+6
-6
@@ -1135,13 +1135,13 @@ added: v22.5.0
|
||||
without the prefix character.
|
||||
|
||||
The names of SQLite parameters begin with a prefix character. By default,
|
||||
`node:sqlite` requires that this prefix character is present when binding
|
||||
parameters. However, with the exception of dollar sign character, these
|
||||
prefix characters also require extra quoting when used in object keys.
|
||||
`node:sqlite` allows binding named parameters without this prefix character in
|
||||
the parameter object. With the exception of the dollar sign character, these
|
||||
prefix characters require extra quoting when used in object keys.
|
||||
|
||||
To improve ergonomics, this method can be used to also allow bare named
|
||||
parameters, which do not require the prefix character in JavaScript code. There
|
||||
are several caveats to be aware of when enabling bare named parameters:
|
||||
This method enables or disables support for bare named parameters, which do not
|
||||
require the prefix character in JavaScript code. There are several caveats to
|
||||
be aware of when bare named parameters are enabled:
|
||||
|
||||
* The prefix character is still required in SQL.
|
||||
* The prefix character is still allowed in JavaScript. In fact, prefixed names
|
||||
|
||||
Reference in new issue
Block a user