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

constructor() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  179d9c22_5f3f_ca23_7d20_3ba2f79808b0["constructor()"]
  a76e119d_67cc_b66d_db8c_6162a7e33fe9["ServerSimulator"]
  179d9c22_5f3f_ca23_7d20_3ba2f79808b0 -->|defined in| a76e119d_67cc_b66d_db8c_6162a7e33fe9
  0ed45967_9ba7_0d43_8a4d_1ffd95022108["constructor()"]
  179d9c22_5f3f_ca23_7d20_3ba2f79808b0 -->|calls| 0ed45967_9ba7_0d43_8a4d_1ffd95022108
  style 179d9c22_5f3f_ca23_7d20_3ba2f79808b0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

integration-tests/tests/pg/pg-proxy.test.ts lines 15–27

	constructor(private db: pg.Client) {
		const { types } = pg;

		types.setTypeParser(types.builtins.TIMESTAMPTZ, (val) => val);
		types.setTypeParser(types.builtins.TIMESTAMP, (val) => val);
		types.setTypeParser(types.builtins.DATE, (val) => val);
		types.setTypeParser(types.builtins.INTERVAL, (val) => val);
		types.setTypeParser(1231, (val) => val);
		types.setTypeParser(1115, (val) => val);
		types.setTypeParser(1185, (val) => val);
		types.setTypeParser(1187, (val) => val);
		types.setTypeParser(1182, (val) => val);
	}

Domain

Subdomains

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the drizzle-orm codebase, defined in integration-tests/tests/pg/pg-proxy.test.ts.
Where is constructor() defined?
constructor() is defined in integration-tests/tests/pg/pg-proxy.test.ts at line 15.
What does constructor() call?
constructor() calls 1 function(s): constructor.

Analyze Your Own Codebase

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

Try Supermodel Free