UNPKG

@rnaga/wp-node

Version:

👉 **[View Full Documentation at rnaga.github.io/wp-node →](https://rnaga.github.io/wp-node/)**

18 lines • 617 B
import { Knex } from "knex"; import { Config } from "./config"; export type DbConnection = Knex | undefined; export default class Database { #private; private config; static connections: Knex[]; static perSiteTables: (keyof import("./types").Tables)[]; constructor(config: Config); get prefix(): string; hasTable(tableName: string): Promise<boolean>; get connection(): Knex<any, any[]>; get transaction(): Promise<Knex.Transaction<any, any[]>>; get schema(): Knex.SchemaBuilder; closeConnection(): void; static closeAll(): void; } //# sourceMappingURL=database.d.ts.map