Skip to content

Commit 2ba198d

Browse files
skdas20aduh95
authored andcommitted
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 8f3d01b commit 2ba198d

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
@@ -1110,13 +1110,13 @@ added: v22.5.0
11101110
without the prefix character.
11111111

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

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

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

0 commit comments

Comments
 (0)