Update insert value types. Allow buffers
This commit is contained in:
Vendored
+4
-3
@@ -978,14 +978,15 @@ export type BUNSQLITEErrorObject = {
|
||||
};
|
||||
export interface SQLInsertGenReturn {
|
||||
query: string;
|
||||
values: (string | number)[];
|
||||
values: SQLInsertGenValueType[];
|
||||
}
|
||||
export type SQLInsertGenValueType = string | number | Float32Array<ArrayBuffer> | Buffer<ArrayBuffer>;
|
||||
export type SQLInsertGenDataFn = () => {
|
||||
placeholder: string;
|
||||
value: string | number | Float32Array<ArrayBuffer>;
|
||||
value: SQLInsertGenValueType;
|
||||
};
|
||||
export type SQLInsertGenDataType = {
|
||||
[k: string]: string | number | SQLInsertGenDataFn | undefined | null;
|
||||
[k: string]: SQLInsertGenValueType | SQLInsertGenDataFn | undefined | null;
|
||||
};
|
||||
export type SQLInsertGenParams = {
|
||||
data: SQLInsertGenDataType[];
|
||||
|
||||
Reference in New Issue
Block a user