From f41d4e46222b51906c58d115b97089a8d647f0e0 Mon Sep 17 00:00:00 2001 From: HoonDongKang Date: Thu, 22 Oct 2026 16:10:22 +0900 Subject: [PATCH] doc: fix sqlite tagged template examples Signed-off-by: HoonDongKang --- doc/api/sqlite.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/sqlite.md b/doc/api/sqlite.md index 2df8dbcd6e7b..ccfc3cd4427d 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