@@ -436,7 +436,7 @@ added: v22.5.0
436436Compiles a SQL statement into a [ prepared statement] [ ] . This method is a wrapper
437437around [ ` sqlite3_prepare_v2() ` ] [ ] .
438438
439- ### ` database.createSQLTagStore ([maxSize]) `
439+ ### ` database.createTagStore ([maxSize]) `
440440
441441<!-- YAML
442442added: v24.9.0
@@ -460,7 +460,7 @@ avoid the overhead of repeatedly parsing and preparing the same SQL statements.
460460import { DatabaseSync } from ' node:sqlite' ;
461461
462462const db = new DatabaseSync (' :memory:' );
463- const sql = db .createSQLTagStore ();
463+ const sql = db .createTagStore ();
464464
465465db .exec (' CREATE TABLE users (id INT, name TEXT)' );
466466
@@ -635,14 +635,14 @@ added: v24.9.0
635635This class represents a single LRU (Least Recently Used) cache for storing
636636prepared statements.
637637
638- Instances of this class are created via the database.createSQLTagStore () method,
638+ Instances of this class are created via the database.createTagStore () method,
639639not by using a constructor. The store caches prepared statements based on the
640640provided SQL query string. When the same query is seen again, the store
641641retrieves the cached statement and safely applies the new values through
642642parameter binding, thereby preventing attacks like SQL injection.
643643
644644The cache has a maxSize that defaults to 1000 statements, but a custom size can
645- be provided (e.g., database.createSQLTagStore (100)). All APIs exposed by this
645+ be provided (e.g., database.createTagStore (100)). All APIs exposed by this
646646class execute synchronously.
647647
648648### ` sqlTagStore.all(sqlTemplate[, ...values]) `
0 commit comments