customJsonb() — drizzle-orm Function Reference
Architecture documentation for the customJsonb() function in pg-custom.test.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD cb849d3b_16ce_0c25_1556_fa5077c4db80["customJsonb()"] 567f439d_8bdf_9f45_8fc4_f141db7d67c1["pg-custom.test.ts"] cb849d3b_16ce_0c25_1556_fa5077c4db80 -->|defined in| 567f439d_8bdf_9f45_8fc4_f141db7d67c1 style cb849d3b_16ce_0c25_1556_fa5077c4db80 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
integration-tests/tests/pg/pg-custom.test.ts lines 74–82
const customJsonb = <TData>(name: string) =>
customType<{ data: TData; driverData: string }>({
dataType() {
return 'jsonb';
},
toDriver(value: TData): string {
return JSON.stringify(value);
},
})(name);
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does customJsonb() do?
customJsonb() is a function in the drizzle-orm codebase, defined in integration-tests/tests/pg/pg-custom.test.ts.
Where is customJsonb() defined?
customJsonb() is defined in integration-tests/tests/pg/pg-custom.test.ts at line 74.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free