Home / Type/ GetLengthAction Type — drizzle-orm Architecture

GetLengthAction Type — drizzle-orm Architecture

Architecture documentation for the GetLengthAction type/interface in column.types.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  9d46f269_1318_6038_8769_48168e1a06b4["GetLengthAction"]
  8f030d4f_790e_1311_a4f1_f0509f0c2d44["column.types.ts"]
  9d46f269_1318_6038_8769_48168e1a06b4 -->|defined in| 8f030d4f_790e_1311_a4f1_f0509f0c2d44
  style 9d46f269_1318_6038_8769_48168e1a06b4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-valibot/src/column.types.ts lines 26–28

type GetLengthAction<T extends Record<string, any>, TType extends string | ArrayLike<unknown>> =
	T['fixedLength'] extends true ? v.LengthAction<TType, number, undefined>
		: v.MaxLengthAction<TType, number, undefined>;

Frequently Asked Questions

What is the GetLengthAction type?
GetLengthAction is a type/interface in the drizzle-orm codebase, defined in drizzle-valibot/src/column.types.ts.
Where is GetLengthAction defined?
GetLengthAction is defined in drizzle-valibot/src/column.types.ts at line 26.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free