Skip to content

Commit 606356c

Browse files
authored
doc: clarify sqlite bare parameter default
Signed-off-by: skdas20 <skdas5405@gmail.com> PR-URL: #62009 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent aed4eaf commit 606356c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎doc/api/sqlite.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,13 +1143,13 @@ added: v22.5.0
11431143
without the prefix character.
11441144

11451145
The names of SQLite parameters begin with a prefix character. By default,
1146-
`node:sqlite` requires that this prefix character is present when binding
1147-
parameters. However, with the exception of dollar sign character, these
1148-
prefix characters also require extra quoting when used in object keys.
1146+
`node:sqlite` allows binding named parameters without this prefix character in
1147+
the parameter object. With the exception of the dollar sign character, these
1148+
prefix characters require extra quoting when used in object keys.
11491149

1150-
To improve ergonomics, this method can be used to also allow bare named
1151-
parameters, which do not require the prefix character in JavaScript code. There
1152-
are several caveats to be aware of when enabling bare named parameters:
1150+
This method enables or disables support for bare named parameters, which do not
1151+
require the prefix character in JavaScript code. There are several caveats to
1152+
be aware of when bare named parameters are enabled:
11531153

11541154
* The prefix character is still required in SQL.
11551155
* The prefix character is still allowed in JavaScript. In fact, prefixed names

0 commit comments

Comments
 (0)