standalone metrics db

This commit is contained in:
Mothana 2024-02-12 16:54:37 +04:00
parent 821cbdf2f9
commit 6f0700c58c
7 changed files with 62 additions and 14 deletions

12
metricsDatasource.js Normal file
View file

@ -0,0 +1,12 @@
import { DataSource } from "typeorm"
import { BalanceEvent } from "./build/src/services/storage/entity/BalanceEvent.js"
import { ChannelBalanceEvent } from "./build/src/services/storage/entity/ChannelsBalanceEvent.js"
import { RoutingEvent } from "./build/src/services/storage/entity/RoutingEvent.js"
export default new DataSource({
type: "sqlite",
database: "metrics.sqlite",
entities: [ RoutingEvent, BalanceEvent, ChannelBalanceEvent],
});