Home / Function/ constructor() — drizzle-orm Function Reference

constructor() — drizzle-orm Function Reference

Architecture documentation for the constructor() function in select.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  515655ad_e44e_c100_5a04_a990ebb09e3a["constructor()"]
  b296e4b6_6606_47f0_2ff5_671089ced410["GelSelectBuilder"]
  515655ad_e44e_c100_5a04_a990ebb09e3a -->|defined in| b296e4b6_6606_47f0_2ff5_671089ced410
  319728bd_7890_4414_2f20_b8394e5fc256["constructor()"]
  319728bd_7890_4414_2f20_b8394e5fc256 -->|calls| 515655ad_e44e_c100_5a04_a990ebb09e3a
  style 515655ad_e44e_c100_5a04_a990ebb09e3a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/gel-core/query-builders/select.ts lines 74–92

	constructor(
		config: {
			fields: TSelection;
			session: GelSession | undefined;
			dialect: GelDialect;
			withList?: Subquery[];
			distinct?: boolean | {
				on: (GelColumn | SQLWrapper)[];
			};
		},
	) {
		this.fields = config.fields;
		this.session = config.session;
		this.dialect = config.dialect;
		if (config.withList) {
			this.withList = config.withList;
		}
		this.distinct = config.distinct;
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/gel-core/query-builders/select.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/gel-core/query-builders/select.ts at line 74.
What calls constructor()?
constructor() is called by 1 function(s): constructor.

Analyze Your Own Codebase

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

Try Supermodel Free