Skip to content

Commit 79ca6ef

Browse files
committed
fixup! sqlite: support ArrayBuffer and TypedArray in StatementSync
1 parent 3a1dfea commit 79ca6ef

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

doc/api/sqlite.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ added: v22.5.0
326326

327327
* `namedParameters` {Object} An optional object used to bind named parameters.
328328
The keys of this object are used to configure the mapping.
329-
* `...anonymousParameters` {null|number|bigint|string|Buffer|Uint8Array|TypedArray|DataView} Zero or
329+
* `...anonymousParameters` {null|number|bigint|string|Buffer|Uint8Array|TypedArray} Zero or
330330
more values to bind to anonymous parameters.
331331
* Returns: {Array} An array of objects. Each object corresponds to a row
332332
returned by executing the prepared statement. The keys and values of each
@@ -358,7 +358,7 @@ added: v22.5.0
358358

359359
* `namedParameters` {Object} An optional object used to bind named parameters.
360360
The keys of this object are used to configure the mapping.
361-
* `...anonymousParameters` {null|number|bigint|string|Buffer|Uint8Array|TypedArray|DataView} Zero or
361+
* `...anonymousParameters` {null|number|bigint|string|Buffer|Uint8Array|TypedArray} Zero or
362362
more values to bind to anonymous parameters.
363363
* Returns: {Object|undefined} An object corresponding to the first row returned
364364
by executing the prepared statement. The keys and values of the object
@@ -378,7 +378,7 @@ added: v23.4.0
378378

379379
* `namedParameters` {Object} An optional object used to bind named parameters.
380380
The keys of this object are used to configure the mapping.
381-
* `...anonymousParameters` {null|number|bigint|string|Buffer|Uint8Array|TypedArray|DataView} Zero or
381+
* `...anonymousParameters` {null|number|bigint|string|Buffer|Uint8Array|TypedArray} Zero or
382382
more values to bind to anonymous parameters.
383383
* Returns: {Iterator} An iterable iterator of objects. Each object corresponds to a row
384384
returned by executing the prepared statement. The keys and values of each
@@ -397,7 +397,7 @@ added: v22.5.0
397397

398398
* `namedParameters` {Object} An optional object used to bind named parameters.
399399
The keys of this object are used to configure the mapping.
400-
* `...anonymousParameters` {null|number|bigint|string|Buffer|Uint8Array|TypedArray|DataView} Zero or
400+
* `...anonymousParameters` {null|number|bigint|string|Buffer|Uint8Array|TypedArray} Zero or
401401
more values to bind to anonymous parameters.
402402
* Returns: {Object}
403403
* `changes`: {number|bigint} The number of rows modified, inserted, or deleted

test/parallel/test-sqlite-typed-array.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const TypedArrays = [
2525
['Float64Array', Float64Array],
2626
['BigInt64Array', BigInt64Array],
2727
['BigUint64Array', BigUint64Array],
28+
['DataView', DataView],
2829
];
2930

3031
suite('StatementSync with TypedArray', () => {

0 commit comments

Comments
 (0)