longcelot-sheet-db
Version:
Google Sheets-backed staging database adapter for Node.js with schema-first design
24 lines • 989 B
TypeScript
import { TableSchema } from '../../schema/types';
interface MigrateDataOptions {
output?: string;
table?: string;
allUsers?: boolean;
dryRun?: boolean;
/** Run the cutover now, in-process, instead of generating a stub migrate-data.js. Phase 16.7. */
run?: boolean;
connectionString?: string;
driver?: 'postgres' | 'mysql';
tokenFile?: string;
}
export declare function generateMigrateDataScript(schemas: TableSchema[], allUsers?: boolean): string;
/**
* Validates --run's own required flags before touching the filesystem for lsdb.config.ts, so a
* misconfigured --run fails fast with the relevant error instead of an unrelated config error.
*/
export declare function resolveRunDriver(options: MigrateDataOptions): {
connectionString: string;
driver: 'postgres' | 'mysql';
};
export declare function migrateDataCommand(options: MigrateDataOptions): Promise<void>;
export default migrateDataCommand;
//# sourceMappingURL=migrate-data.d.ts.map