Updates
This commit is contained in:
Vendored
+3
@@ -14,4 +14,7 @@ const DbClient = new Database(db_file_path, {
|
||||
create: true,
|
||||
});
|
||||
sqliteVec.load(DbClient);
|
||||
if (config.wal_mode) {
|
||||
DbClient.run("PRAGMA journal_mode = WAL;");
|
||||
}
|
||||
export default DbClient;
|
||||
|
||||
Vendored
+4
@@ -1370,6 +1370,10 @@ export type BunSQLiteConfig = {
|
||||
* definition export. Example `db_types.ts` or `types/db_types.ts`
|
||||
*/
|
||||
typedef_file_path?: string;
|
||||
/**
|
||||
* Whether to enable `WAL` mode
|
||||
*/
|
||||
wal_mode?: boolean;
|
||||
};
|
||||
/**
|
||||
* Resolved Bun SQLite config paired with the loaded database schema.
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@moduletrace/bun-sqlite",
|
||||
"version": "1.1.9",
|
||||
"version": "1.1.11",
|
||||
"description": "SQLite manager for Bun",
|
||||
"author": "Benjamin Toby",
|
||||
"main": "dist/index.js",
|
||||
|
||||
@@ -21,4 +21,8 @@ const DbClient = new Database(db_file_path, {
|
||||
|
||||
sqliteVec.load(DbClient);
|
||||
|
||||
if (config.wal_mode) {
|
||||
DbClient.run("PRAGMA journal_mode = WAL;");
|
||||
}
|
||||
|
||||
export default DbClient;
|
||||
|
||||
@@ -1554,6 +1554,10 @@ export type BunSQLiteConfig = {
|
||||
* definition export. Example `db_types.ts` or `types/db_types.ts`
|
||||
*/
|
||||
typedef_file_path?: string;
|
||||
/**
|
||||
* Whether to enable `WAL` mode
|
||||
*/
|
||||
wal_mode?: boolean;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user