import type { ObjectOf } from "../Types"; import type { Configuration } from "../Contracts/Database"; import type Application from "../Foundation/Application"; import type { Knex } from "knex"; declare class DatabaseManager { protected app: Application; protected config: ObjectOf; protected driver: any; protected db: Knex; constructor(app: Application); /** * Get connection configuration */ protected configuration(name?: string | null): Configuration; /** * Get default connection name */ getDefaultConnection(): string; /** * Boot registered driver to application */ bootDriver(): Promise; /** * make connection to database */ makeConnection(): Promise; /** * check is connection using knexjs */ isUsingKnex(): boolean; get table(): Knex.Table; get raw(): Knex.RawBuilder; get transaction(): { (config?: Knex.TransactionConfig | undefined): Promise>; (transactionScope?: null | undefined, config?: Knex.TransactionConfig | undefined): Promise>; (transactionScope: (trx: Knex.Transaction) => void | Promise, config?: Knex.TransactionConfig | undefined): Promise; }; getDb(): Knex; getDriver(): any; } export default DatabaseManager;