standalone metrics db
This commit is contained in:
parent
821cbdf2f9
commit
6f0700c58c
7 changed files with 62 additions and 14 deletions
12
metricsDatasource.js
Normal file
12
metricsDatasource.js
Normal 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],
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue