@@ -354,7 +354,7 @@ around [`sqlite3_prepare_v2()`][].
354
354
### ` database.createSQLTagStore([maxSize]) `
355
355
356
356
<!-- YAML
357
- added: REPLACEME
357
+ added: v24.9.0
358
358
-->
359
359
360
360
* ` maxSize ` {integer} The maximum number of prepared statements to cache.
@@ -544,7 +544,7 @@ over hand-crafted SQL strings when handling user input.
544
544
## Class: ` SQLTagStore `
545
545
546
546
<!-- YAML
547
- added: REPLACEME
547
+ added: v24.9.0
548
548
-->
549
549
550
550
This class represents a single LRU (Least Recently Used) cache for storing
@@ -563,7 +563,7 @@ class execute synchronously.
563
563
### ` sqlTagStore.all(sqlTemplate[, ...values]) `
564
564
565
565
<!-- YAML
566
- added: REPLACEME
566
+ added: v24.9.0
567
567
-->
568
568
569
569
* ` sqlTemplate ` {Template Literal} A template literal containing the SQL query.
@@ -575,7 +575,7 @@ Executes the given SQL query and returns all resulting rows as an array of objec
575
575
### ` sqlTagStore.get(sqlTemplate[, ...values]) `
576
576
577
577
<!-- YAML
578
- added: REPLACEME
578
+ added: v24.9.0
579
579
-->
580
580
581
581
* ` sqlTemplate ` {Template Literal} A template literal containing the SQL query.
@@ -588,7 +588,7 @@ Executes the given SQL query and returns the first resulting row as an object.
588
588
### ` sqlTagStore.iterate(sqlTemplate[, ...values]) `
589
589
590
590
<!-- YAML
591
- added: REPLACEME
591
+ added: v24.9.0
592
592
-->
593
593
594
594
* ` sqlTemplate ` {Template Literal} A template literal containing the SQL query.
@@ -600,7 +600,7 @@ Executes the given SQL query and returns an iterator over the resulting rows.
600
600
### ` sqlTagStore.run(sqlTemplate[, ...values]) `
601
601
602
602
<!-- YAML
603
- added: REPLACEME
603
+ added: v24.9.0
604
604
-->
605
605
606
606
* ` sqlTemplate ` {Template Literal} A template literal containing the SQL query.
@@ -612,7 +612,7 @@ Executes the given SQL query, which is expected to not return any rows (e.g., IN
612
612
### ` sqlTagStore.size() `
613
613
614
614
<!-- YAML
615
- added: REPLACEME
615
+ added: v24.9.0
616
616
-->
617
617
618
618
* Returns: {integer} The number of prepared statements currently in the cache.
@@ -622,7 +622,7 @@ A read-only property that returns the number of prepared statements currently in
622
622
### ` sqlTagStore.capacity `
623
623
624
624
<!-- YAML
625
- added: REPLACEME
625
+ added: v24.9.0
626
626
-->
627
627
628
628
* Returns: {integer} The maximum number of prepared statements the cache can hold.
@@ -632,7 +632,7 @@ A read-only property that returns the maximum number of prepared statements the
632
632
### ` sqlTagStore.db `
633
633
634
634
<!-- YAML
635
- added: REPLACEME
635
+ added: v24.9.0
636
636
-->
637
637
638
638
* {DatabaseSync} The ` DatabaseSync ` instance that created this ` SQLTagStore ` .
@@ -642,15 +642,15 @@ A read-only property that returns the `DatabaseSync` object associated with this
642
642
### ` sqlTagStore.reset() `
643
643
644
644
<!-- YAML
645
- added: REPLACEME
645
+ added: v24.9.0
646
646
-->
647
647
648
648
Resets the LRU cache, clearing all stored prepared statements.
649
649
650
650
### ` sqlTagStore.clear() `
651
651
652
652
<!-- YAML
653
- added: REPLACEME
653
+ added: v24.9.0
654
654
-->
655
655
656
656
An alias for ` sqlTagStore.reset() ` .
0 commit comments