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 =
88 | Int8Array
99 | ArrayBuffer ;
1010
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+
1119/** Internal data types supported by SQLite3. */
1220declare type SQLiteDataType =
1321 | CAPI [ 'SQLITE_INTEGER' ]
@@ -18,10 +26,10 @@ declare type SQLiteDataType =
1826
1927/** Specifies parameter bindings. */
2028declare type BindingSpec =
21- | readonly SqlValue [ ]
22- | { [ paramName : string ] : SqlValue }
29+ | readonly BindableValue [ ]
30+ | { [ paramName : string ] : BindableValue }
2331 /** Assumed to have binding index `1` */
24- | SqlValue ;
32+ | ( SqlValue | boolean ) ;
2533
2634/**
2735 * Certain WASM-bound APIs, where explicitly noted, have additional string-type
You can’t perform that action at this time.
0 commit comments