GetZodPrimitiveType Type — drizzle-orm Architecture
Architecture documentation for the GetZodPrimitiveType type/interface in column.types.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 8db7ae12_eed2_2721_2325_37e65934d3f4["GetZodPrimitiveType"] 2be77f5f_e94f_b91a_88e0_947351113ff1["column.types.ts"] 8db7ae12_eed2_2721_2325_37e65934d3f4 -->|defined in| 2be77f5f_e94f_b91a_88e0_947351113ff1 style 8db7ae12_eed2_2721_2325_37e65934d3f4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-zod/src/column.types.ts lines 44–74
type GetZodPrimitiveType<
TData,
TColumnType,
TCoerce extends Partial<Record<'bigint' | 'boolean' | 'date' | 'number' | 'string', true>> | true | undefined,
> = TColumnType extends
| 'MySqlTinyInt'
| 'SingleStoreTinyInt'
| 'PgSmallInt'
| 'PgSmallSerial'
| 'MySqlSmallInt'
| 'MySqlMediumInt'
| 'SingleStoreSmallInt'
| 'SingleStoreMediumInt'
| 'PgInteger'
| 'PgSerial'
| 'MySqlInt'
| 'SingleStoreInt'
| 'PgBigInt53'
| 'PgBigSerial53'
| 'MySqlBigInt53'
| 'MySqlSerial'
| 'SingleStoreBigInt53'
| 'SingleStoreSerial'
| 'SQLiteInteger'
| 'MySqlYear'
| 'SingleStoreYear' ? CanCoerce<TCoerce, 'number'> extends true ? z.coerce.ZodCoercedNumber : z.ZodInt
: TData extends number ? CanCoerce<TCoerce, 'number'> extends true ? z.coerce.ZodCoercedNumber : z.ZodNumber
: TData extends bigint ? CanCoerce<TCoerce, 'bigint'> extends true ? z.coerce.ZodCoercedBigInt : z.ZodBigInt
: TData extends boolean ? CanCoerce<TCoerce, 'boolean'> extends true ? z.coerce.ZodCoercedBoolean : z.ZodBoolean
: TData extends string ? CanCoerce<TCoerce, 'string'> extends true ? z.coerce.ZodCoercedString : z.ZodString
: z.ZodType;
Defined In
Source
Frequently Asked Questions
What is the GetZodPrimitiveType type?
GetZodPrimitiveType is a type/interface in the drizzle-orm codebase, defined in drizzle-zod/src/column.types.ts.
Where is GetZodPrimitiveType defined?
GetZodPrimitiveType is defined in drizzle-zod/src/column.types.ts at line 44.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free