/** * Schema facade for `@atlex/orm` migrations. * * Provides a fluent static API (`Schema.create`, `Schema.table`, etc.). * that delegates to Knex's schema builder internally via a `Connection`. */ import type { Knex } from 'knex'; import { Blueprint } from './Blueprint.js'; export declare class Schema { private static connectionName; /** * Use a named connection for subsequent schema calls. * * @param name - Connection name. * @returns this * @example * Schema.connection('default').create('users', ...) */ static connection(name: string): typeof Schema; private static knex; /** * Create a table. */ static create(table: string, callback: (table: Blueprint) => void): Promise; /** * Modify an existing table. */ static table(table: string, callback: (table: Blueprint) => void): Promise; /** * Drop a table. */ static drop(table: string): Promise; /** * Drop a table if it exists. */ static dropIfExists(table: string): Promise; /** * Rename a table. */ static rename(from: string, to: string): Promise; /** * Check if a table exists. */ static hasTable(table: string): Promise; /** * Escape hatch to the underlying Knex schema builder. * * @returns Knex schema builder. */ static raw(): Knex.SchemaBuilder; } //# sourceMappingURL=Schema.d.ts.map