mapFromDriverValue() — drizzle-orm Function Reference
Architecture documentation for the mapFromDriverValue() function in blob.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 4fe0cb9f_b714_2cc2_0ed0_7a5af4bb40a2["mapFromDriverValue()"] bfd793a9_5746_1128_6378_17a46760f4cc["SQLiteBigInt"] 4fe0cb9f_b714_2cc2_0ed0_7a5af4bb40a2 -->|defined in| bfd793a9_5746_1128_6378_17a46760f4cc dd41aed8_f97e_13f8_8b52_c3a757f0c931["mapFromDriverValue()"] 4fe0cb9f_b714_2cc2_0ed0_7a5af4bb40a2 -->|calls| dd41aed8_f97e_13f8_8b52_c3a757f0c931 style 4fe0cb9f_b714_2cc2_0ed0_7a5af4bb40a2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/sqlite-core/columns/blob.ts lines 43–57
override mapFromDriverValue(value: Buffer | Uint8Array | ArrayBuffer): bigint {
if (typeof Buffer !== 'undefined' && Buffer.from) {
const buf = Buffer.isBuffer(value)
? value
// eslint-disable-next-line no-instanceof/no-instanceof
: value instanceof ArrayBuffer
? Buffer.from(value)
: value.buffer
? Buffer.from(value.buffer, value.byteOffset, value.byteLength)
: Buffer.from(value);
return BigInt(buf.toString('utf8'));
}
return BigInt(textDecoder!.decode(value));
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does mapFromDriverValue() do?
mapFromDriverValue() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/sqlite-core/columns/blob.ts.
Where is mapFromDriverValue() defined?
mapFromDriverValue() is defined in drizzle-orm/src/sqlite-core/columns/blob.ts at line 43.
What does mapFromDriverValue() call?
mapFromDriverValue() calls 1 function(s): mapFromDriverValue.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free