schema.types.ts — drizzle-orm Source File
Architecture documentation for schema.types.ts, a typescript file in the drizzle-orm codebase. 4 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 28b925d4_7f31_9845_f7d2_ae4d3d15f3ee["schema.types.ts"] d530d59d_be0a_6412_1cd0_197b9709fc36["schema.types.internal.ts"] 28b925d4_7f31_9845_f7d2_ae4d3d15f3ee --> d530d59d_be0a_6412_1cd0_197b9709fc36 4859a2e0_4bd3_506a_e7e6_bf4316983bb5["arktype"] 28b925d4_7f31_9845_f7d2_ae4d3d15f3ee --> 4859a2e0_4bd3_506a_e7e6_bf4316983bb5 690f7dfc_0aea_9ee8_d6e7_26bbb3689031["drizzle-orm"] 28b925d4_7f31_9845_f7d2_ae4d3d15f3ee --> 690f7dfc_0aea_9ee8_d6e7_26bbb3689031 53497908_16e7_977d_e97d_7414884a88a6["pg-core"] 28b925d4_7f31_9845_f7d2_ae4d3d15f3ee --> 53497908_16e7_977d_e97d_7414884a88a6 b3de3d3d_2c66_6c17_9e29_4ae6af2ae68f["schema.ts"] b3de3d3d_2c66_6c17_9e29_4ae6af2ae68f --> 28b925d4_7f31_9845_f7d2_ae4d3d15f3ee style 28b925d4_7f31_9845_f7d2_ae4d3d15f3ee fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import type { Type } from 'arktype';
import type { Table, View } from 'drizzle-orm';
import type { PgEnum } from 'drizzle-orm/pg-core';
import type { BuildRefine, BuildSchema, NoUnknownKeys } from './schema.types.internal.ts';
export interface CreateSelectSchema {
<TTable extends Table>(table: TTable): BuildSchema<'select', TTable['_']['columns'], undefined>;
<
TTable extends Table,
TRefine extends BuildRefine<TTable['_']['columns']>,
>(
table: TTable,
refine?: NoUnknownKeys<TRefine, TTable['$inferSelect']>,
): BuildSchema<'select', TTable['_']['columns'], TRefine>;
<TView extends View>(view: TView): BuildSchema<'select', TView['_']['selectedFields'], undefined>;
<
TView extends View,
TRefine extends BuildRefine<TView['_']['selectedFields']>,
>(
view: TView,
refine: NoUnknownKeys<TRefine, TView['$inferSelect']>,
): BuildSchema<'select', TView['_']['selectedFields'], TRefine>;
<TEnum extends PgEnum<any>>(enum_: TEnum): Type<TEnum['enumValues'][number]>;
}
export interface CreateInsertSchema {
<TTable extends Table>(table: TTable): BuildSchema<'insert', TTable['_']['columns'], undefined>;
<
TTable extends Table,
TRefine extends BuildRefine<Pick<TTable['_']['columns'], keyof TTable['$inferInsert']>>,
>(
table: TTable,
refine?: NoUnknownKeys<TRefine, TTable['$inferInsert']>,
): BuildSchema<'insert', TTable['_']['columns'], TRefine>;
}
export interface CreateUpdateSchema {
<TTable extends Table>(table: TTable): BuildSchema<'update', TTable['_']['columns'], undefined>;
<
TTable extends Table,
TRefine extends BuildRefine<Pick<TTable['_']['columns'], keyof TTable['$inferInsert']>>,
>(
table: TTable,
refine?: TRefine,
): BuildSchema<'update', TTable['_']['columns'], TRefine>;
}
Domain
Dependencies
- arktype
- drizzle-orm
- pg-core
- schema.types.internal.ts
Imported By
Source
Frequently Asked Questions
What does schema.types.ts do?
schema.types.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the ValidationAdapters domain.
What does schema.types.ts depend on?
schema.types.ts imports 4 module(s): arktype, drizzle-orm, pg-core, schema.types.internal.ts.
What files import schema.types.ts?
schema.types.ts is imported by 1 file(s): schema.ts.
Where is schema.types.ts in the architecture?
schema.types.ts is located at drizzle-arktype/src/schema.types.ts (domain: ValidationAdapters, directory: drizzle-arktype/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free