feat(edit-demo): use in-memory database

This commit is contained in:
Elian Doran
2025-03-30 22:26:23 +03:00
parent 428f00425a
commit 9590f5362e
2 changed files with 3 additions and 1 deletions

View File

@@ -20,6 +20,8 @@ let statementCache: Record<string, Statement> = {};
function buildDatabase() {
if (process.env.TRILIUM_INTEGRATION_TEST === "memory") {
return buildIntegrationTestDatabase();
} else if (process.env.TRILIUM_INTEGRATION_TEST === "memory-no-store") {
return new Database(":memory:");
}
return new Database(dataDir.DOCUMENT_PATH);