11# SQLite
22
3- <!-- introduced_in=REPLACEME -->
3+ <!-- introduced_in=v22.5.0 -->
44
55<!-- YAML
6- added: REPLACEME
6+ added: v22.5.0
77-->
88
99> Stability: 1.1 - Active development
@@ -85,7 +85,7 @@ console.log(query.all());
8585## Class: ` DatabaseSync `
8686
8787<!-- YAML
88- added: REPLACEME
88+ added: v22.5.0
8989-->
9090
9191This class represents a single [ connection] [ ] to a SQLite database. All APIs
@@ -94,7 +94,7 @@ exposed by this class execute synchronously.
9494### ` new DatabaseSync(location[, options]) `
9595
9696<!-- YAML
97- added: REPLACEME
97+ added: v22.5.0
9898-->
9999
100100* ` location ` {string} The location of the database. A SQLite database can be
@@ -112,7 +112,7 @@ Constructs a new `DatabaseSync` instance.
112112### ` database.close() `
113113
114114<!-- YAML
115- added: REPLACEME
115+ added: v22.5.0
116116-->
117117
118118Closes the database connection. An exception is thrown if the database is not
@@ -121,7 +121,7 @@ open. This method is a wrapper around [`sqlite3_close_v2()`][].
121121### ` database.exec(sql) `
122122
123123<!-- YAML
124- added: REPLACEME
124+ added: v22.5.0
125125-->
126126
127127* ` sql ` {string} A SQL string to execute.
@@ -133,7 +133,7 @@ file. This method is a wrapper around [`sqlite3_exec()`][].
133133### ` database.open() `
134134
135135<!-- YAML
136- added: REPLACEME
136+ added: v22.5.0
137137-->
138138
139139Opens the database specified in the ` location ` argument of the ` DatabaseSync `
@@ -143,7 +143,7 @@ the constructor. An exception is thrown if the database is already open.
143143### ` database.prepare(sql) `
144144
145145<!-- YAML
146- added: REPLACEME
146+ added: v22.5.0
147147-->
148148
149149* ` sql ` {string} A SQL string to compile to a prepared statement.
@@ -155,7 +155,7 @@ around [`sqlite3_prepare_v2()`][].
155155## Class: ` StatementSync `
156156
157157<!-- YAML
158- added: REPLACEME
158+ added: v22.5.0
159159-->
160160
161161This class represents a single [ prepared statement] [ ] . This class cannot be
@@ -172,7 +172,7 @@ over hand-crafted SQL strings when handling user input.
172172### ` statement.all([namedParameters][, ...anonymousParameters]) `
173173
174174<!-- YAML
175- added: REPLACEME
175+ added: v22.5.0
176176-->
177177
178178* ` namedParameters ` {Object} An optional object used to bind named parameters.
@@ -191,7 +191,7 @@ the values in `namedParameters` and `anonymousParameters`.
191191### ` statement.expandedSQL() `
192192
193193<!-- YAML
194- added: REPLACEME
194+ added: v22.5.0
195195-->
196196
197197* Returns: {string} The source SQL expanded to include parameter values.
@@ -203,7 +203,7 @@ placeholders replaced by values. This method is a wrapper around
203203### ` statement.get([namedParameters][, ...anonymousParameters]) `
204204
205205<!-- YAML
206- added: REPLACEME
206+ added: v22.5.0
207207-->
208208
209209* ` namedParameters ` {Object} An optional object used to bind named parameters.
@@ -223,7 +223,7 @@ values in `namedParameters` and `anonymousParameters`.
223223### ` statement.run([namedParameters][, ...anonymousParameters]) `
224224
225225<!-- YAML
226- added: REPLACEME
226+ added: v22.5.0
227227-->
228228
229229* ` namedParameters ` {Object} An optional object used to bind named parameters.
@@ -248,7 +248,7 @@ values in `namedParameters` and `anonymousParameters`.
248248### ` statement.setAllowBareNamedParameters(enabled) `
249249
250250<!-- YAML
251- added: REPLACEME
251+ added: v22.5.0
252252-->
253253
254254* ` enabled ` {boolean} Enables or disables support for binding named parameters
@@ -273,7 +273,7 @@ are several caveats to be aware of when enabling bare named parameters:
273273### ` statement.setReadBigInts(enabled) `
274274
275275<!-- YAML
276- added: REPLACEME
276+ added: v22.5.0
277277-->
278278
279279* ` enabled ` {boolean} Enables or disables the use of ` BigInt ` s when reading
@@ -289,7 +289,7 @@ supported at all times.
289289### ` statement.sourceSQL() `
290290
291291<!-- YAML
292- added: REPLACEME
292+ added: v22.5.0
293293-->
294294
295295* Returns: {string} The source SQL used to create this prepared statement.
0 commit comments