Home / Type/ Expected Type — drizzle-orm Architecture

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
  f31fc045_df43_180b_eecb_721933ca493d["Expected"]
  caa15051_4c2c_cd8b_fcc3_001b783b7336["tables.ts"]
  f31fc045_df43_180b_eecb_721933ca493d -->|defined in| caa15051_4c2c_cd8b_fcc3_001b783b7336
  style f31fc045_df43_180b_eecb_721933ca493d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/type-tests/geldb/tables.ts lines 683–761

	type Expected = GelTableWithColumns<{
		name: 'cities_table';
		schema: undefined;
		dialect: 'gel';
		columns: {
			id: GelColumn<{
				tableName: 'cities_table';
				name: 'id';
				dataType: 'number';
				columnType: 'GelInteger';
				data: number;
				driverParam: number;
				hasDefault: false;
				notNull: true;
				enumValues: undefined;
				baseColumn: never;
				generated: undefined;
				identity: undefined;
				isPrimaryKey: true;
				isAutoincrement: false;
				hasRuntimeDefault: false;
			}>;
			name: GelColumn<{
				tableName: 'cities_table';
				name: 'name';
				dataType: 'string';
				columnType: 'GelText';
				data: string;
				driverParam: string;
				hasDefault: false;
				enumValues: undefined;
				notNull: true;
				baseColumn: never;
				generated: undefined;
				identity: undefined;
				isPrimaryKey: true;
				isAutoincrement: false;
				hasRuntimeDefault: false;
			}>;
			role: GelColumn<
				{
					tableName: 'cities_table';
					name: 'role';
					dataType: 'string';
					columnType: 'GelText';
					data: 'admin' | 'user';
					driverParam: string;
					hasDefault: true;
					enumValues: undefined;
					notNull: true;
					baseColumn: never;
					generated: undefined;
					identity: undefined;
					isPrimaryKey: false;
					isAutoincrement: false;
					hasRuntimeDefault: false;
				},
				{},
				{ $type: 'admin' | 'user' }
			>;
			population: GelColumn<{
				tableName: 'cities_table';
				name: 'population';
				dataType: 'number';
				columnType: 'GelInteger';
				data: number;
				driverParam: number;
				notNull: false;
				hasDefault: true;
				enumValues: undefined;
				baseColumn: never;
				generated: undefined;
				identity: undefined;
				isPrimaryKey: false;
				isAutoincrement: false;
				hasRuntimeDefault: false;
			}>;
		};
	}>;

Frequently Asked Questions

What is the Expected type?
Expected is a type/interface in the drizzle-orm codebase, defined in drizzle-orm/type-tests/geldb/tables.ts.
Where is Expected defined?
Expected is defined in drizzle-orm/type-tests/geldb/tables.ts at line 683.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free