@launchql/migrate
Version:
PostgreSQL Migration Tools
17 lines (16 loc) • 768 B
TypeScript
/**
* Resolves SQL scripts for deployment or reversion.
*
* @param pkgDir - The package directory (defaults to the current working directory).
* @param scriptType - The type of script to resolve (`deploy` or `revert`).
* @returns A single concatenated SQL script as a string.
*/
export declare const resolve: (pkgDir?: string, scriptType?: "deploy" | "revert") => string;
/**
* Resolves SQL scripts based on the `sqitch.plan` file.
*
* @param pkgDir - The package directory (defaults to the current working directory).
* @param scriptType - The type of script to resolve (`deploy` or `revert`).
* @returns A single concatenated SQL script as a string.
*/
export declare const resolveWithPlan: (pkgDir?: string, scriptType?: "deploy" | "revert") => string;