import { type Prostgles } from "../Prostgles"; /** * Given these prostgles options that affect the schema: * - tableConfig * - fileTable * * Run sql init file and Apply (or return) the necessary changes to the db to bring the schema to this config * * If tableConfigMigrations is provided: * - Check if the schema version table exists and already contains the current version of schema options * or * - Create schema version table, * * Sequence: * 1. execute initSql * 2. execute dropTableQueries * 3. get current schema * 4. get desired schema * 5. if did not migrate prepend migration to the patching transaction * 6. apply any patches * 7. Update schema version */ export declare const applyTableConfig: (prostgles: Prostgles, commit?: boolean) => Promise<{ patchQueries: string[]; } | undefined>; /** * Given a table config, return the list of necessary db changes to bring the existing schema to this config */ //# sourceMappingURL=applyTableConfig.d.ts.map