FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

doc: clarify sqlite bare parameter default · nodejs/node@003a913 · GitHub

/ node Public

Commit 003a913

Browse files
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 132c578 commit 003a913

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
@@ -1135,13 +1135,13 @@ added: v22.5.0
11351135
without the prefix character.
11361136

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

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

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

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL