don't use /tmp dir for lmdbx dbs

This commit is contained in:
2024-08-02 16:40:28 -04:00
parent 70b690ab9d
commit 85cafd985d
3 changed files with 7 additions and 5 deletions
+3 -1
View File
@@ -24,4 +24,6 @@ dist-ssr
*.sln *.sln
*.sw? *.sw?
.env .env
*.db
*.db-lck
+2 -2
View File
@@ -2,13 +2,13 @@ import type { CalendarDatabase } from "./calendardb.interfaces.js";
import { open } from "lmdbx"; import { open } from "lmdbx";
const calendarAggregatesDb = open({ const calendarAggregatesDb = open({
path: "/tmp/calendar-aggregates.db", path: "./calendar-aggregates.db",
// any options go here, we can turn on compression like this: // any options go here, we can turn on compression like this:
compression: true, compression: true,
}); });
const calendarExistenceDb = open({ const calendarExistenceDb = open({
path: "/tmp/calendar-existence.db", path: "./calendar-existence.db",
// any options go here, we can turn on compression like this: // any options go here, we can turn on compression like this:
compression: true, compression: true,
}); });
+2 -2
View File
@@ -2,13 +2,13 @@ import type { OptionContractDatabase } from "./optiondb.interfaces.js";
import { open } from "lmdbx"; import { open } from "lmdbx";
const optionContractAggregatesDb = open({ const optionContractAggregatesDb = open({
path: "/tmp/option-contract-aggregates.db", path: "./option-contract-aggregates.db",
// any options go here, we can turn on compression like this: // any options go here, we can turn on compression like this:
compression: true, compression: true,
}); });
const optionContractExistenceDb = open({ const optionContractExistenceDb = open({
path: "/tmp/option-contract-existence.db", path: "./option-contract-existence.db",
// any options go here, we can turn on compression like this: // any options go here, we can turn on compression like this:
compression: true, compression: true,
}); });