Executes a query using $params for interpolating values and $types as a hint for each
those params.
public execute ( string $query, array $params = [], array $types = [] ) : Cake\Database\StatementInterface | ||
$query | string | SQL to be executed and interpolated with $params |
$params | array | list or associative array of params to be interpolated in $query as values |
$types | array | list or associative array of types to be used for casting values in query |
return | Cake\Database\StatementInterface | executed statement |