constructor() — drizzle-orm Function Reference
Architecture documentation for the constructor() function in policies.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD e353067a_175a_eb2e_f2ba_bd078e4b4e10["constructor()"] f86054e6_9a36_2142_b020_d41b11f58b79["GelPolicy"] e353067a_175a_eb2e_f2ba_bd078e4b4e10 -->|defined in| f86054e6_9a36_2142_b020_d41b11f58b79 fdef31dc_cac9_1fe3_cca1_ed7fd3164e55["constructor()"] e353067a_175a_eb2e_f2ba_bd078e4b4e10 -->|calls| fdef31dc_cac9_1fe3_cca1_ed7fd3164e55 style e353067a_175a_eb2e_f2ba_bd078e4b4e10 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/gel-core/policies.ts lines 35–46
constructor(
readonly name: string,
config?: GelPolicyConfig,
) {
if (config) {
this.as = config.as;
this.for = config.for;
this.to = config.to;
this.using = config.using;
this.withCheck = config.withCheck;
}
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/gel-core/policies.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/gel-core/policies.ts at line 35.
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