Query Parameters and Bindings
Custom Parameter Types
query.from( "users" )
.where( "id", "=", { value = 18, cfsqltype = "CF_SQL_VARCHAR" } );SELECT *
FROM `users`
WHERE `id` = ?query.table( "users" )
.insert( {
"id" = { value 1, cfsqltype = "CF_SQL_VARCHAR" },
"age" = 18,
"updatedDate" = { value = now(), cfsqltype = "CF_SQL_DATE" }
} );INSERT INTO `users`
(`id`, `age`, `updatedDate`)
VALUES
(?, ?, ?)Strict Date Detection
Numeric SQL Type
Automatic Scale Detection
Bindings
getBindings
getRawBindings
addBindings
Name
Type
Required
Default
Description
addBindingsFromBuilder
Name
Type
Required
Default
Description
Last updated
Was this helpful?