diff --git a/src/js/bun/sqlite.ts b/src/js/bun/sqlite.ts index a01b55c6b8164..6f690ddd7460b 100644 --- a/src/js/bun/sqlite.ts +++ b/src/js/bun/sqlite.ts @@ -187,6 +187,10 @@ class Database { if (typeof options === "object" && options) { flags = 0; + if (typeof options.fileMustExist === "boolean") { + options.create = !options.fileMustExist; + } + if (options.readonly) { flags = constants.SQLITE_OPEN_READONLY; }