bindIfParam() — drizzle-orm Function Reference
Architecture documentation for the bindIfParam() function in conditions.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 4c6d62d9_6b87_a37a_f778_9a0034345725["bindIfParam()"] 57e6e1af_7162_5b6e_bfcf_9d9935f60d31["conditions.ts"] 4c6d62d9_6b87_a37a_f778_9a0034345725 -->|defined in| 57e6e1af_7162_5b6e_bfcf_9d9935f60d31 6ebea5a2_cb1c_5a6c_3801_f7a03c0b9f1f["eq()"] 6ebea5a2_cb1c_5a6c_3801_f7a03c0b9f1f -->|calls| 4c6d62d9_6b87_a37a_f778_9a0034345725 fcb234d8_14a1_6511_fd91_c726ed6a0bed["ne()"] fcb234d8_14a1_6511_fd91_c726ed6a0bed -->|calls| 4c6d62d9_6b87_a37a_f778_9a0034345725 598e1178_f11a_08c4_6663_9ac1593ee5a9["gt()"] 598e1178_f11a_08c4_6663_9ac1593ee5a9 -->|calls| 4c6d62d9_6b87_a37a_f778_9a0034345725 f33b87f3_a5bf_b141_5f0c_156b15f8a008["gte()"] f33b87f3_a5bf_b141_5f0c_156b15f8a008 -->|calls| 4c6d62d9_6b87_a37a_f778_9a0034345725 a3e1802e_8c04_7662_8227_04878c51e28c["lt()"] a3e1802e_8c04_7662_8227_04878c51e28c -->|calls| 4c6d62d9_6b87_a37a_f778_9a0034345725 7ba21731_852e_c9c1_dbed_afedd0b4cfbe["lte()"] 7ba21731_852e_c9c1_dbed_afedd0b4cfbe -->|calls| 4c6d62d9_6b87_a37a_f778_9a0034345725 cdbb5661_a9fc_bb21_1c6f_1abe1b9fdd7c["inArray()"] cdbb5661_a9fc_bb21_1c6f_1abe1b9fdd7c -->|calls| 4c6d62d9_6b87_a37a_f778_9a0034345725 da1be03b_2002_d64f_1b59_fc094c424158["notInArray()"] da1be03b_2002_d64f_1b59_fc094c424158 -->|calls| 4c6d62d9_6b87_a37a_f778_9a0034345725 0cffe2e8_56a3_49a4_7997_deb03ce21e01["between()"] 0cffe2e8_56a3_49a4_7997_deb03ce21e01 -->|calls| 4c6d62d9_6b87_a37a_f778_9a0034345725 f024aba0_515a_68e1_afcc_53b5ffffd6cf["notBetween()"] f024aba0_515a_68e1_afcc_53b5ffffd6cf -->|calls| 4c6d62d9_6b87_a37a_f778_9a0034345725 7b5a9d0c_68e7_9bfd_9e47_4a71df07ddc5["arrayContains()"] 7b5a9d0c_68e7_9bfd_9e47_4a71df07ddc5 -->|calls| 4c6d62d9_6b87_a37a_f778_9a0034345725 859f7b00_af3d_02f0_b42b_c93df0e3918a["arrayContained()"] 859f7b00_af3d_02f0_b42b_c93df0e3918a -->|calls| 4c6d62d9_6b87_a37a_f778_9a0034345725 f2acd431_7879_dced_e0b7_0d135c7b375c["arrayOverlaps()"] f2acd431_7879_dced_e0b7_0d135c7b375c -->|calls| 4c6d62d9_6b87_a37a_f778_9a0034345725 style 4c6d62d9_6b87_a37a_f778_9a0034345725 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/sql/expressions/conditions.ts lines 17–30
export function bindIfParam(value: unknown, column: SQLWrapper): SQLChunk {
if (
isDriverValueEncoder(column)
&& !isSQLWrapper(value)
&& !is(value, Param)
&& !is(value, Placeholder)
&& !is(value, Column)
&& !is(value, Table)
&& !is(value, View)
) {
return new Param(value, column);
}
return value as SQLChunk;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does bindIfParam() do?
bindIfParam() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/sql/expressions/conditions.ts.
Where is bindIfParam() defined?
bindIfParam() is defined in drizzle-orm/src/sql/expressions/conditions.ts at line 17.
What does bindIfParam() call?
bindIfParam() calls 2 function(s): isDriverValueEncoder, isSQLWrapper.
What calls bindIfParam()?
bindIfParam() is called by 13 function(s): arrayContained, arrayContains, arrayOverlaps, between, eq, gt, gte, inArray, and 5 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free