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
  39143895_bcae_6372_ef25_0a67bfaf6e8c["constructor()"]
  a96c3d61_1d27_8a4f_e20c_2647f5908960["OPSQLiteSession"]
  39143895_bcae_6372_ef25_0a67bfaf6e8c -->|defined in| a96c3d61_1d27_8a4f_e20c_2647f5908960
  80906615_b789_7f47_b4af_c84f87be5784["constructor()"]
  80906615_b789_7f47_b4af_c84f87be5784 -->|calls| 39143895_bcae_6372_ef25_0a67bfaf6e8c
  80906615_b789_7f47_b4af_c84f87be5784["constructor()"]
  39143895_bcae_6372_ef25_0a67bfaf6e8c -->|calls| 80906615_b789_7f47_b4af_c84f87be5784
  style 39143895_bcae_6372_ef25_0a67bfaf6e8c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/op-sqlite/session.ts lines 37–46

	constructor(
		private client: OPSQLiteConnection,
		dialect: SQLiteAsyncDialect,
		private schema: RelationalSchemaConfig<TSchema> | undefined,
		options: OPSQLiteSessionOptions = {},
	) {
		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/op-sqlite/session.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/op-sqlite/session.ts at line 37.
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