Major version update. Major bugfixes. Security vulnerabilites fixed
This commit is contained in:
Vendored
+18
-2
@@ -1,2 +1,18 @@
|
||||
import type { BunSQLiteConfigReturn } from "../types";
|
||||
export default function init(): Promise<BunSQLiteConfigReturn>;
|
||||
import type { Database } from "bun:sqlite";
|
||||
import type { BunSQLiteConfig, BunSQLiteConfigReturn, BUN_SQLITE_DatabaseSchemaType } from "../types";
|
||||
/**
|
||||
* # Declare Global Variables
|
||||
*/
|
||||
declare global {
|
||||
var CONFIG: BunSQLiteConfig;
|
||||
var DB_SCHEMA: BUN_SQLITE_DatabaseSchemaType;
|
||||
var SQLITE_CLIENT: Database;
|
||||
var CONFIG_FILE_PATH: string;
|
||||
var SCHEMA_FILE_PATH: string;
|
||||
}
|
||||
/**
|
||||
* # Load config, schema and the SQLite client into globals
|
||||
* @description Runs once per process. Later calls return the loaded
|
||||
* globals.
|
||||
*/
|
||||
export default function init(): BunSQLiteConfigReturn;
|
||||
|
||||
Reference in New Issue
Block a user