Home / Function/ createUpdateSchema() — drizzle-orm Function Reference

createUpdateSchema() — drizzle-orm Function Reference

Architecture documentation for the createUpdateSchema() function in schema.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  3709c255_eab8_8196_a256_19459b96246e["createUpdateSchema()"]
  8dacc372_d6d5_e273_f9e6_3a10af9bc4a7["schema.ts"]
  3709c255_eab8_8196_a256_19459b96246e -->|defined in| 8dacc372_d6d5_e273_f9e6_3a10af9bc4a7
  a1c23736_0b64_ccf3_cdc8_9fef2996891c["getColumns()"]
  3709c255_eab8_8196_a256_19459b96246e -->|calls| a1c23736_0b64_ccf3_cdc8_9fef2996891c
  8f6a4e48_fad1_f6d4_41bd_580208780715["handleColumns()"]
  3709c255_eab8_8196_a256_19459b96246e -->|calls| 8f6a4e48_fad1_f6d4_41bd_580208780715
  style 3709c255_eab8_8196_a256_19459b96246e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-typebox/src/schema.ts lines 107–113

export const createUpdateSchema: CreateUpdateSchema = (
	entity: Table,
	refine?: Record<string, any>,
) => {
	const columns = getColumns(entity);
	return handleColumns(columns, refine ?? {}, updateConditions) as any;
};

Subdomains

Frequently Asked Questions

What does createUpdateSchema() do?
createUpdateSchema() is a function in the drizzle-orm codebase, defined in drizzle-typebox/src/schema.ts.
Where is createUpdateSchema() defined?
createUpdateSchema() is defined in drizzle-typebox/src/schema.ts at line 107.
What does createUpdateSchema() call?
createUpdateSchema() calls 2 function(s): getColumns, handleColumns.

Analyze Your Own Codebase

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

Try Supermodel Free