Commit 4b9caf05df4 for nodejs
commit 4b9caf05df4011131f56cb0f74d7510d26b85d6d
Author: Donghoon Kang <d159123@naver.com>
Date: Thu Oct 29 08:17:28 2026 +0900
doc: fix sqlite tagged template examples
Signed-off-by: HoonDongKang <d159123@naver.com>
PR-URL: https://github.com/nodejs/node/pull/66920
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Guilherme Araújo <arauujogui@gmail.com>
diff --git a/doc/api/sqlite.md b/doc/api/sqlite.md
index 2df8dbcd6e7..ccfc3cd4427 100644
--- a/doc/api/sqlite.md
+++ b/doc/api/sqlite.md
@@ -791,13 +791,13 @@ statement for future use.
> literals, where it performs string interpolation.
>
> ```js
-> // 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.
> sqlTagStore.run`INSERT INTO t1 (id) VALUES (${id})`;
>
> // This is an *unsafe* example of an untagged template string.
> // `id` is interpolated into the query text as a string.
> // This can lead to SQL injection and data corruption.
-> db.run(`INSERT INTO t1 (id) VALUES (${id})`);
+> db.exec(`INSERT INTO t1 (id) VALUES (${id})`);
> ```
The tag store will match a statement from the cache if the query strings