roles.ts — drizzle-orm Source File
Architecture documentation for roles.ts, a typescript file in the drizzle-orm codebase. 1 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR e7aab828_03b8_3900_fc30_72bf989b2418["roles.ts"] 27705a9d_afe9_57dd_8c97_e52d8a67d426["entity.ts"] e7aab828_03b8_3900_fc30_72bf989b2418 --> 27705a9d_afe9_57dd_8c97_e52d8a67d426 2653b8be_3a2e_d91d_bd2c_70b1c16e3b68["policies.ts"] 2653b8be_3a2e_d91d_bd2c_70b1c16e3b68 --> e7aab828_03b8_3900_fc30_72bf989b2418 style e7aab828_03b8_3900_fc30_72bf989b2418 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { entityKind } from '~/entity.ts';
export interface GelRoleConfig {
createDb?: boolean;
createRole?: boolean;
inherit?: boolean;
}
export class GelRole implements GelRoleConfig {
static readonly [entityKind]: string = 'GelRole';
/** @internal */
_existing?: boolean;
/** @internal */
readonly createDb: GelRoleConfig['createDb'];
/** @internal */
readonly createRole: GelRoleConfig['createRole'];
/** @internal */
readonly inherit: GelRoleConfig['inherit'];
constructor(
readonly name: string,
config?: GelRoleConfig,
) {
if (config) {
this.createDb = config.createDb;
this.createRole = config.createRole;
this.inherit = config.inherit;
}
}
existing(): this {
this._existing = true;
return this;
}
}
export function gelRole(name: string, config?: GelRoleConfig) {
return new GelRole(name, config);
}
Domain
Subdomains
Functions
Classes
Types
Dependencies
- entity.ts
Imported By
Source
Frequently Asked Questions
What does roles.ts do?
roles.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleORM domain, RelationalQuery subdomain.
What functions are defined in roles.ts?
roles.ts defines 1 function(s): gelRole.
What does roles.ts depend on?
roles.ts imports 1 module(s): entity.ts.
What files import roles.ts?
roles.ts is imported by 1 file(s): policies.ts.
Where is roles.ts in the architecture?
roles.ts is located at drizzle-orm/src/gel-core/roles.ts (domain: DrizzleORM, subdomain: RelationalQuery, directory: drizzle-orm/src/gel-core).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free