makePatched() — drizzle-orm Function Reference
Architecture documentation for the makePatched() function in snapshotsDiffer.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 2a31c0d8_4e6b_9fea_6631_394786c177b2["makePatched()"] 582ba146_631b_7794_80a3_5b8044ba7cde["snapshotsDiffer.ts"] 2a31c0d8_4e6b_9fea_6631_394786c177b2 -->|defined in| 582ba146_631b_7794_80a3_5b8044ba7cde style 2a31c0d8_4e6b_9fea_6631_394786c177b2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/snapshotsDiffer.ts lines 166–182
export const makePatched = <T extends ZodTypeAny>(schema: T) => {
return union([
object({
type: literal('added'),
value: schema,
}),
object({
type: literal('deleted'),
value: schema,
}),
object({
type: literal('changed'),
old: schema,
new: schema,
}),
]);
};
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does makePatched() do?
makePatched() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/snapshotsDiffer.ts.
Where is makePatched() defined?
makePatched() is defined in drizzle-kit/src/snapshotsDiffer.ts at line 166.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free