Expected Type — drizzle-orm Architecture
Architecture documentation for the Expected type/interface in tables.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 967a6743_1a6e_55d5_58b7_1f61e92b599f["Expected"] 998b0a13_62af_9408_d100_2bb61b49b6b9["tables.ts"] 967a6743_1a6e_55d5_58b7_1f61e92b599f -->|defined in| 998b0a13_62af_9408_d100_2bb61b49b6b9 style 967a6743_1a6e_55d5_58b7_1f61e92b599f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/type-tests/pg/tables.ts lines 976–1050
type Expected = PgTableWithColumns<{
name: 'cities_table';
schema: undefined;
dialect: 'pg';
columns: {
id: PgColumn<{
tableName: 'cities_table';
name: 'id';
dataType: 'number';
columnType: 'PgSerial';
data: number;
driverParam: number;
hasDefault: true;
notNull: true;
enumValues: undefined;
baseColumn: never;
generated: undefined;
identity: undefined;
isPrimaryKey: true;
isAutoincrement: false;
hasRuntimeDefault: false;
}>;
name: PgColumn<{
tableName: 'cities_table';
name: 'name';
dataType: 'string';
columnType: 'PgText';
data: string;
driverParam: string;
hasDefault: false;
enumValues: [string, ...string[]];
notNull: true;
baseColumn: never;
generated: undefined;
identity: undefined;
isPrimaryKey: true;
isAutoincrement: false;
hasRuntimeDefault: false;
}>;
role: PgColumn<{
tableName: 'cities_table';
name: 'role';
dataType: 'string';
columnType: 'PgText';
data: 'admin' | 'user';
driverParam: string;
hasDefault: true;
enumValues: ['admin', 'user'];
notNull: true;
baseColumn: never;
generated: undefined;
identity: undefined;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
}>;
population: PgColumn<{
tableName: 'cities_table';
name: 'population';
dataType: 'number';
columnType: 'PgInteger';
data: number;
driverParam: string | number;
notNull: false;
hasDefault: true;
enumValues: undefined;
baseColumn: never;
generated: undefined;
identity: undefined;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
}>;
};
}>;
Defined In
Source
Frequently Asked Questions
What is the Expected type?
Expected is a type/interface in the drizzle-orm codebase, defined in drizzle-orm/type-tests/pg/tables.ts.
Where is Expected defined?
Expected is defined in drizzle-orm/type-tests/pg/tables.ts at line 976.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free