Home / Class/ schema Class — drizzle-orm Architecture

schema Class — drizzle-orm Architecture

Architecture documentation for the schema class in pg-common.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  c013d11f_4921_5fed_c9a1_bdac8fec6e54["schema"]
  6b4b5478_1e31_3c5f_fd80_52b37d2daf24["pg-common.ts"]
  c013d11f_4921_5fed_c9a1_bdac8fec6e54 -->|defined in| 6b4b5478_1e31_3c5f_fd80_52b37d2daf24

Relationship Graph

Source Code

integration-tests/tests/pg/pg-common.ts lines 100–109

declare module 'vitest' {
	interface TestContext {
		pg: {
			db: PgDatabase<PgQueryResultHKT>;
		};
		neonPg: {
			db: NeonHttpDatabase<typeof schema>;
		};
	}
}

Domain

Frequently Asked Questions

What is the schema class?
schema is a class in the drizzle-orm codebase, defined in integration-tests/tests/pg/pg-common.ts.
Where is schema defined?
schema is defined in integration-tests/tests/pg/pg-common.ts at line 100.

Analyze Your Own Codebase

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

Try Supermodel Free