Skip to content

doc: fix sqlite tagged template examples - #66920

Open
HoonDongKang wants to merge 1 commit into
nodejs:mainfrom
HoonDongKang:doc/fix-tagged-template-examples
Open

HoonDongKang wants to merge 1 commit into
nodejs:mainfrom
HoonDongKang:doc/fix-tagged-template-examples

Conversation

@HoonDongKang

Copy link
Copy Markdown
Member

Replace db.run() with db.exec(), the method used to execute SQL statements in node:sqlite.

-// This a safe example of binding a parameter to a tagged statement.
+// This is a safe example of binding a parameter to a tagged statement.

-db.run(`INSERT INTO t1 (id) VALUES (${id})`);
+db.exec(`INSERT INTO t1 (id) VALUES (${id})`);

Signed-off-by: HoonDongKang <d159123@naver.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/sqlite

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to Node.js documentation. sqlite Issues and PRs related to the SQLite subsystem. labels Oct 22, 2026
@trivikr trivikr added author ready PRs with CI started, the required approvals, and no outstanding review comments. commit-queue PRs queued for automated landing through the Commit Queue. labels Oct 25, 2026
@nodejs-github-bot nodejs-github-bot added the lacks-second-approval Commit Queue PRs awaiting a second collaborator approval or completion of the required wait. label Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. commit-queue PRs queued for automated landing through the Commit Queue. doc Issues and PRs related to Node.js documentation. lacks-second-approval Commit Queue PRs awaiting a second collaborator approval or completion of the required wait. sqlite Issues and PRs related to the SQLite subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants