Spinner Class — drizzle-orm Architecture
Architecture documentation for the Spinner class in views.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 95a9c940_50c6_eb42_6f60_4b70cf427a3b["Spinner"] 217e2cbd_4fb7_ceab_251c_5733ece08a8f["views.ts"] 95a9c940_50c6_eb42_6f60_4b70cf427a3b -->|defined in| 217e2cbd_4fb7_ceab_251c_5733ece08a8f 4190617d_c65e_0500_99ea_1525860f36ec["constructor()"] 95a9c940_50c6_eb42_6f60_4b70cf427a3b -->|method| 4190617d_c65e_0500_99ea_1525860f36ec
Relationship Graph
Source Code
drizzle-kit/src/cli/views.ts lines 372–390
class Spinner {
private offset: number = 0;
private readonly iterator: () => void;
constructor(private readonly frames: string[]) {
this.iterator = () => {
this.offset += 1;
this.offset %= frames.length - 1;
};
}
public tick = () => {
this.iterator();
};
public value = () => {
return this.frames[this.offset];
};
}
Domain
Defined In
Source
Frequently Asked Questions
What is the Spinner class?
Spinner is a class in the drizzle-orm codebase, defined in drizzle-kit/src/cli/views.ts.
Where is Spinner defined?
Spinner is defined in drizzle-kit/src/cli/views.ts at line 372.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free