Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions doc/api/sqlite.md
Original file line number Diff line number Diff line change
Expand Up @@ -1134,13 +1134,14 @@ 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.

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:
`node:sqlite` allows bare named parameters because
`allowBareNamedParameters` defaults to `true`. When bare named parameters are
disabled, the prefix character is required when binding parameters. However,
with the exception of the dollar sign character, these prefix characters also
require extra quoting when used in object keys.

This method enables or disables bare named parameters. 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
Expand Down
Loading