@rnaga/wp-node
Version:
👉 **[View Full Documentation at rnaga.github.io/wp-node →](https://rnaga.github.io/wp-node/)**
16 lines • 569 B
TypeScript
import { Knex } from "knex";
import { Config } from "./config";
export type DbConnection = Knex | undefined;
export default class Database {
private config;
static perSiteTables: (keyof import("./types").Tables)[];
private connectionKey;
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;
static closeAll(): void;
}
//# sourceMappingURL=database.d.ts.map