SQL Restrictions
Method Signature
/**
* Use arbitrary SQL to modify the resultset
*
* @sql The sql to execute, it can contain parameters via positional `?` placeholders
* @params This is an array of value definitions which need to be a struct of { value: , type: } or if the value is a simple value, we will try to infer it's type
*/
function sql( required string sql, array params=[] )Arguments
SQL Params
Valid Types
Inferred Types
Last updated
Was this helpful?