MigrateProgress Class — drizzle-orm Architecture
Architecture documentation for the MigrateProgress class in views.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 26130143_c8db_0c2f_e1bb_0c868b78314b["MigrateProgress"] 217e2cbd_4fb7_ceab_251c_5733ece08a8f["views.ts"] 26130143_c8db_0c2f_e1bb_0c868b78314b -->|defined in| 217e2cbd_4fb7_ceab_251c_5733ece08a8f 67a01cf2_9b6d_c5bd_92c7_40357526efc9["constructor()"] 26130143_c8db_0c2f_e1bb_0c868b78314b -->|method| 67a01cf2_9b6d_c5bd_92c7_40357526efc9 d2e502ff_e056_756f_45b3_4b8c47f7a2e3["render()"] 26130143_c8db_0c2f_e1bb_0c868b78314b -->|method| d2e502ff_e056_756f_45b3_4b8c47f7a2e3
Relationship Graph
Source Code
drizzle-kit/src/cli/views.ts lines 529–550
export class MigrateProgress extends TaskView {
private readonly spinner: Spinner = new Spinner('⣷⣯⣟⡿⢿⣻⣽⣾'.split(''));
private timeout: NodeJS.Timeout | undefined;
constructor() {
super();
this.timeout = setInterval(() => {
this.spinner.tick();
this.requestLayout();
}, 128);
this.on('detach', () => clearInterval(this.timeout));
}
render(status: 'pending' | 'done'): string {
if (status === 'pending') {
const spin = this.spinner.value();
return `[${spin}] applying migrations...`;
}
return `[${chalk.green('✓')}] migrations applied successfully!`;
}
}
Domain
Defined In
Source
Frequently Asked Questions
What is the MigrateProgress class?
MigrateProgress is a class in the drizzle-orm codebase, defined in drizzle-kit/src/cli/views.ts.
Where is MigrateProgress defined?
MigrateProgress is defined in drizzle-kit/src/cli/views.ts at line 529.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free