don't use /tmp dir for lmdbx dbs
This commit is contained in:
+3
-1
@@ -24,4 +24,6 @@ dist-ssr
|
||||
*.sln
|
||||
*.sw?
|
||||
|
||||
.env
|
||||
.env
|
||||
*.db
|
||||
*.db-lck
|
||||
@@ -2,13 +2,13 @@ import type { CalendarDatabase } from "./calendardb.interfaces.js";
|
||||
import { open } from "lmdbx";
|
||||
|
||||
const calendarAggregatesDb = open({
|
||||
path: "/tmp/calendar-aggregates.db",
|
||||
path: "./calendar-aggregates.db",
|
||||
// any options go here, we can turn on compression like this:
|
||||
compression: true,
|
||||
});
|
||||
|
||||
const calendarExistenceDb = open({
|
||||
path: "/tmp/calendar-existence.db",
|
||||
path: "./calendar-existence.db",
|
||||
// any options go here, we can turn on compression like this:
|
||||
compression: true,
|
||||
});
|
||||
|
||||
@@ -2,13 +2,13 @@ import type { OptionContractDatabase } from "./optiondb.interfaces.js";
|
||||
import { open } from "lmdbx";
|
||||
|
||||
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:
|
||||
compression: true,
|
||||
});
|
||||
|
||||
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:
|
||||
compression: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user