From 80ad61f3e55c0690d05a20c1e419e1d244a61615 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Fri, 2 Feb 2024 10:49:54 +0800 Subject: [PATCH] Fix filesize is nagative number --- db.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.ts b/db.ts index 40b402d..48cbe80 100644 --- a/db.ts +++ b/db.ts @@ -302,7 +302,7 @@ export class EhDb { this.#use_ffi = parse_bool(Deno.env.get("DB_USE_FFI") ?? "false"); if (this.#use_ffi) { const DB = (await import("./utils/db_ffi.ts")).DbFfi; - this.db = new DB(this.#db_path); + this.db = new DB(this.#db_path, { int64: true }); } else { const DB = (await import("./utils/db_wasm.ts")).DbWasm; this.db = new DB(this.#db_path);