@@ -364,7 +364,7 @@ around [`sqlite3_prepare_v2()`][].
364
364
### ` database.createSQLTagStore([maxSize]) `
365
365
366
366
<!-- YAML
367
- added: REPLACEME
367
+ added: v24.9.0
368
368
-->
369
369
370
370
* ` maxSize ` {integer} The maximum number of prepared statements to cache.
@@ -554,7 +554,7 @@ over hand-crafted SQL strings when handling user input.
554
554
## Class: ` SQLTagStore `
555
555
556
556
<!-- YAML
557
- added: REPLACEME
557
+ added: v24.9.0
558
558
-->
559
559
560
560
This class represents a single LRU (Least Recently Used) cache for storing
@@ -573,7 +573,7 @@ class execute synchronously.
573
573
### ` sqlTagStore.all(sqlTemplate[, ...values]) `
574
574
575
575
<!-- YAML
576
- added: REPLACEME
576
+ added: v24.9.0
577
577
-->
578
578
579
579
* ` sqlTemplate ` {Template Literal} A template literal containing the SQL query.
@@ -585,7 +585,7 @@ Executes the given SQL query and returns all resulting rows as an array of objec
585
585
### ` sqlTagStore.get(sqlTemplate[, ...values]) `
586
586
587
587
<!-- YAML
588
- added: REPLACEME
588
+ added: v24.9.0
589
589
-->
590
590
591
591
* ` sqlTemplate ` {Template Literal} A template literal containing the SQL query.
@@ -598,7 +598,7 @@ Executes the given SQL query and returns the first resulting row as an object.
598
598
### ` sqlTagStore.iterate(sqlTemplate[, ...values]) `
599
599
600
600
<!-- YAML
601
- added: REPLACEME
601
+ added: v24.9.0
602
602
-->
603
603
604
604
* ` sqlTemplate ` {Template Literal} A template literal containing the SQL query.
@@ -610,7 +610,7 @@ Executes the given SQL query and returns an iterator over the resulting rows.
610
610
### ` sqlTagStore.run(sqlTemplate[, ...values]) `
611
611
612
612
<!-- YAML
613
- added: REPLACEME
613
+ added: v24.9.0
614
614
-->
615
615
616
616
* ` sqlTemplate ` {Template Literal} A template literal containing the SQL query.
@@ -622,7 +622,7 @@ Executes the given SQL query, which is expected to not return any rows (e.g., IN
622
622
### ` sqlTagStore.size() `
623
623
624
624
<!-- YAML
625
- added: REPLACEME
625
+ added: v24.9.0
626
626
-->
627
627
628
628
* Returns: {integer} The number of prepared statements currently in the cache.
@@ -632,7 +632,7 @@ A read-only property that returns the number of prepared statements currently in
632
632
### ` sqlTagStore.capacity `
633
633
634
634
<!-- YAML
635
- added: REPLACEME
635
+ added: v24.9.0
636
636
-->
637
637
638
638
* Returns: {integer} The maximum number of prepared statements the cache can hold.
@@ -642,7 +642,7 @@ A read-only property that returns the maximum number of prepared statements the
642
642
### ` sqlTagStore.db `
643
643
644
644
<!-- YAML
645
- added: REPLACEME
645
+ added: v24.9.0
646
646
-->
647
647
648
648
* {DatabaseSync} The ` DatabaseSync ` instance that created this ` SQLTagStore ` .
@@ -652,15 +652,15 @@ A read-only property that returns the `DatabaseSync` object associated with this
652
652
### ` sqlTagStore.reset() `
653
653
654
654
<!-- YAML
655
- added: REPLACEME
655
+ added: v24.9.0
656
656
-->
657
657
658
658
Resets the LRU cache, clearing all stored prepared statements.
659
659
660
660
### ` sqlTagStore.clear() `
661
661
662
662
<!-- YAML
663
- added: REPLACEME
663
+ added: v24.9.0
664
664
-->
665
665
666
666
An alias for ` sqlTagStore.reset() ` .
0 commit comments