blob() — drizzle-orm Function Reference
Architecture documentation for the blob() function in blob.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD b63ae1bd_82fa_b519_bd66_c68ae72bf362["blob()"] 5c8a5ab6_4356_4d2f_782b_4e0b3b38b801["blob.ts"] b63ae1bd_82fa_b519_bd66_c68ae72bf362 -->|defined in| 5c8a5ab6_4356_4d2f_782b_4e0b3b38b801 style b63ae1bd_82fa_b519_bd66_c68ae72bf362 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/sqlite-core/columns/blob.ts lines 185–194
export function blob(a?: string | BlobConfig, b?: BlobConfig) {
const { name, config } = getColumnNameAndConfig<BlobConfig | undefined>(a, b);
if (config?.mode === 'json') {
return new SQLiteBlobJsonBuilder(name);
}
if (config?.mode === 'bigint') {
return new SQLiteBigIntBuilder(name);
}
return new SQLiteBlobBufferBuilder(name);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does blob() do?
blob() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/sqlite-core/columns/blob.ts.
Where is blob() defined?
blob() is defined in drizzle-orm/src/sqlite-core/columns/blob.ts at line 185.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free