clicksuite
Version:
A CLI tool for managing ClickHouse database migrations with environment-specific configurations
24 lines • 761 B
TypeScript
import { Context } from './types';
export declare class Runner {
private context;
private db;
constructor(context: Context);
private _getLocalMigrations;
/**
* Initialize the project by creating the migrations directory and the migrations table
*/
init(): Promise<void>;
/**
* Generate a new migration file
* @param name - The name of the migration
*/
generate(migrationNameInput: string): Promise<void>;
status(): Promise<void>;
migrate(): Promise<void>;
up(targetVersion?: string): Promise<void>;
down(targetVersionToBecomeLatest?: string): Promise<void>;
reset(): Promise<void>;
private _updateSchemaFile;
schemaLoad(): Promise<void>;
}
//# sourceMappingURL=runner.d.ts.map