import connection , { Database } from 'better-sqlite3' ; import { BridgeTable } from "./tables/BridgeTable" ; import type { Config } from "../Config" ; prop export class DBController { public readonly bridges : BridgeTable ; private readonly db : Database ; constructor ( config ) { this . db = connection ( config . database . location ) ; this . bridges = new BridgeTable ( this . db ) ; } }