MySqlSchema Class — drizzle-orm Architecture
Architecture documentation for the MySqlSchema class in schema.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD d07f3e31_7f7b_7133_a834_88eb7af36587["MySqlSchema"] 194c3b0b_7164_9ad5_57b9_5c4bf9729c73["schema.ts"] d07f3e31_7f7b_7133_a834_88eb7af36587 -->|defined in| 194c3b0b_7164_9ad5_57b9_5c4bf9729c73 be30910a_7db0_8b6c_cd04_e56465d20a37["constructor()"] d07f3e31_7f7b_7133_a834_88eb7af36587 -->|method| be30910a_7db0_8b6c_cd04_e56465d20a37
Relationship Graph
Source Code
drizzle-orm/src/mysql-core/schema.ts lines 5–19
export class MySqlSchema<TName extends string = string> {
static readonly [entityKind]: string = 'MySqlSchema';
constructor(
public readonly schemaName: TName,
) {}
table: MySqlTableFn<TName> = (name, columns, extraConfig) => {
return mysqlTableWithSchema(name, columns, extraConfig, this.schemaName);
};
view = ((name, columns) => {
return mysqlViewWithSchema(name, columns, this.schemaName);
}) as typeof mysqlView;
}
Domain
Defined In
Source
Frequently Asked Questions
What is the MySqlSchema class?
MySqlSchema is a class in the drizzle-orm codebase, defined in drizzle-orm/src/mysql-core/schema.ts.
Where is MySqlSchema defined?
MySqlSchema is defined in drizzle-orm/src/mysql-core/schema.ts at line 5.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free