Major version update. Major bugfixes. Security vulnerabilites fixed
This commit is contained in:
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
import type { APIResponseObject, BunSQLiteConfig, SQLInsertGenValueType } from "../types";
|
||||
type Param = {
|
||||
query: string;
|
||||
values?: SQLInsertGenValueType[];
|
||||
config?: BunSQLiteConfig;
|
||||
};
|
||||
/**
|
||||
* # Main DB Handler Function
|
||||
* @description Any statement that produces columns (SELECT, WITH, PRAGMA,
|
||||
* RETURNING, ...) returns rows. Everything else goes through `run`, which
|
||||
* also handles multiple statements.
|
||||
*/
|
||||
export default function dbHandler<T extends {
|
||||
[k: string]: any;
|
||||
} = {
|
||||
[k: string]: any;
|
||||
}>({ query, values, config }: Param): APIResponseObject<T>;
|
||||
export {};
|
||||
Reference in New Issue
Block a user