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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to Node.js documentation. sqlite Issues and PRs related to the SQLite subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants