Title: docs: sqlite statement.setAllowBareNamedParameters() · Issue #61823 · nodejs/node · GitHub
Open Graph Title: docs: sqlite statement.setAllowBareNamedParameters() · Issue #61823 · nodejs/node
X Title: docs: sqlite statement.setAllowBareNamedParameters() · Issue #61823 · nodejs/node
Description: Affected URL(s) https://nodejs.org/docs/latest/api/sqlite.html#statementsetallowbarenamedparametersenabled Description of the problem For sqlite statement.setAllowBareNamedParameters() the docs say: By default, node:sqlite requires that ...
Open Graph Description: Affected URL(s) https://nodejs.org/docs/latest/api/sqlite.html#statementsetallowbarenamedparametersenabled Description of the problem For sqlite statement.setAllowBareNamedParameters() the docs say...
X Description: Affected URL(s) https://nodejs.org/docs/latest/api/sqlite.html#statementsetallowbarenamedparametersenabled Description of the problem For sqlite statement.setAllowBareNamedParameters() the docs say...
Opengraph URL: https://github.com/nodejs/node/issues/61823
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"docs: sqlite statement.setAllowBareNamedParameters()","articleBody":"### Affected URL(s)\n\nhttps://nodejs.org/docs/latest/api/sqlite.html#statementsetallowbarenamedparametersenabled\n\n### Description of the problem\n\nFor sqlite `statement.setAllowBareNamedParameters()` the docs say:\n\n> By default, node:sqlite requires that this prefix character is present when binding parameters .. To improve ergonomics, this method can be used to also allow bare named parameters\n\nbut this is not right, the default value for `allowBareNamedParameters` is true, see [database.prepare(sql[, options])](https://nodejs.org/docs/latest-v25.x/api/sqlite.html#databasepreparesql-options) and [new DatabaseSync(path[, options])](https://nodejs.org/docs/latest-v25.x/api/sqlite.html#new-databasesyncpath-options), which means the prefix is not required. This needs to be re-written to account for `allowBareNamedParameters` defaulting to true not false.\n\nExample showing `allowBareNamedParameters` defaults to true:\n\n```js\nimport { DatabaseSync } from 'node:sqlite';\nconst db = new DatabaseSync(':memory:');\n\ndb.exec('CREATE TABLE t (c1, c2, c3)');\n\n// named parameters $c1, $c2, $c3\nconst insert = db.prepare('INSERT INTO t VALUES ($c1, $c2, $c3)');\n\n// bare named parameters, prefix not required by default\ninsert.run({ c1: 1, c2: 2, c3: 3 });\n\nconsole.log(db.prepare('SELECT * FROM t').get());\n// { c1: 1, c2: 2, c3: 3 }\n```\n\n","author":{"url":"https://github.com/mike-git374","@type":"Person","name":"mike-git374"},"datePublished":"2026-02-14T20:53:14Z","url":"https://github.com/nodejs/node/issues/61823"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a0f6226a-7a0f-6fa2-dfcb-5b8528573298 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D702:2D28FC:3F6F3E:56B7E1:6AED1827 |
| html-safe-nonce | 2ee872a14bf4c965010e96a437577985882133fee62d8596298009a73edd2dfa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzAyOjJEMjhGQzozRjZGM0U6NTZCN0UxOjZBRUQxODI3IiwidmlzaXRvcl9pZCI6IjYyMzUxMTgxNjg0NDc5ODE2MDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5f828e9552b5342f244acb64a32e2bee757d91399d817b18b9aa704b0a8c243f |
| hovercard-subject-tag | issue:3942322975 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/61823/issue_layout |
| twitter:image | https://opengraph.githubassets.com/10e9560f53474e97be71d5742bc2ee615bddad833de90cbe971df7d8efae91ef/nodejs/node/issues/61823 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/10e9560f53474e97be71d5742bc2ee615bddad833de90cbe971df7d8efae91ef/nodejs/node/issues/61823 |
| og:image:alt | Affected URL(s) https://nodejs.org/docs/latest/api/sqlite.html#statementsetallowbarenamedparametersenabled Description of the problem For sqlite statement.setAllowBareNamedParameters() the docs say... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mike-git374 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 120085d0bcec1f427e3ab45302c8b95f873d26ad21984dc86d62ab2c10158f41 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e12fd03aa775dceadc5a793c3a0791e43ca256bb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width