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

constructor() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  bb8f3a3a_9b88_1e1a_494c_b9555048f0e2["constructor()"]
  916e21cc_0bbc_927f_ecfb_2147725c35d9["LibSQLSession"]
  bb8f3a3a_9b88_1e1a_494c_b9555048f0e2 -->|defined in| 916e21cc_0bbc_927f_ecfb_2147725c35d9
  c73bd0ae_cb97_f3c4_2617_eb9cf1c5cd4f["constructor()"]
  c73bd0ae_cb97_f3c4_2617_eb9cf1c5cd4f -->|calls| bb8f3a3a_9b88_1e1a_494c_b9555048f0e2
  c73bd0ae_cb97_f3c4_2617_eb9cf1c5cd4f["constructor()"]
  bb8f3a3a_9b88_1e1a_494c_b9555048f0e2 -->|calls| c73bd0ae_cb97_f3c4_2617_eb9cf1c5cd4f
  style bb8f3a3a_9b88_1e1a_494c_b9555048f0e2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/libsql/session.ts lines 38–48

	constructor(
		private client: Client,
		dialect: SQLiteAsyncDialect,
		private schema: RelationalSchemaConfig<TSchema> | undefined,
		private options: LibSQLSessionOptions,
		private tx: Transaction | undefined,
	) {
		super(dialect);
		this.logger = options.logger ?? new NoopLogger();
		this.cache = options.cache ?? new NoopCache();
	}

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/libsql/session.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/libsql/session.ts at line 38.
What does constructor() call?
constructor() calls 1 function(s): constructor.
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