Home / Type/ ColumnsWithTable Type — drizzle-orm Architecture

ColumnsWithTable Type — drizzle-orm Architecture

Architecture documentation for the ColumnsWithTable type/interface in foreign-keys.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  7e40ee93_378f_dc9c_185b_c0b0cfe31fbb["ColumnsWithTable"]
  fab980e5_64f0_d7af_6cbf_9d6014d326a4["foreign-keys.ts"]
  7e40ee93_378f_dc9c_185b_c0b0cfe31fbb -->|defined in| fab980e5_64f0_d7af_6cbf_9d6014d326a4
  style 7e40ee93_378f_dc9c_185b_c0b0cfe31fbb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/sqlite-core/foreign-keys.ts lines 96–99

type ColumnsWithTable<
	TTableName extends string,
	TColumns extends SQLiteColumn[],
> = { [Key in keyof TColumns]: AnySQLiteColumn<{ tableName: TTableName }> };

Frequently Asked Questions

What is the ColumnsWithTable type?
ColumnsWithTable is a type/interface in the drizzle-orm codebase, defined in drizzle-orm/src/sqlite-core/foreign-keys.ts.
Where is ColumnsWithTable defined?
ColumnsWithTable is defined in drizzle-orm/src/sqlite-core/foreign-keys.ts at line 96.

Analyze Your Own Codebase

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

Try Supermodel Free