File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,14 @@ declare type SqlValue =
8
8
| Int8Array
9
9
| ArrayBuffer ;
10
10
11
+ /** Types of values that can be passed to SQLite. */
12
+ declare type BindableValue =
13
+ | SqlValue
14
+ /** converted to NULL */
15
+ | undefined
16
+ /** converted to INTEGER */
17
+ | boolean ;
18
+
11
19
/** Internal data types supported by SQLite3. */
12
20
declare type SQLiteDataType =
13
21
| CAPI [ 'SQLITE_INTEGER' ]
@@ -18,10 +26,10 @@ declare type SQLiteDataType =
18
26
19
27
/** Specifies parameter bindings. */
20
28
declare type BindingSpec =
21
- | readonly SqlValue [ ]
22
- | { [ paramName : string ] : SqlValue }
29
+ | readonly BindableValue [ ]
30
+ | { [ paramName : string ] : BindableValue }
23
31
/** Assumed to have binding index `1` */
24
- | SqlValue ;
32
+ | ( SqlValue | boolean ) ;
25
33
26
34
/**
27
35
* Certain WASM-bound APIs, where explicitly noted, have additional string-type
You can’t perform that action at this time.
0 commit comments