don't use /tmp dir for lmdbx dbs
This commit is contained in:
+3
-1
@@ -24,4 +24,6 @@ dist-ssr
|
|||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
|
|
||||||
.env
|
.env
|
||||||
|
*.db
|
||||||
|
*.db-lck
|
||||||
@@ -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,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,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user