Method | Description | |
---|---|---|
log ( ) : void | Logger method. | |
setParamStringLength ( integer $len = 20 ) : self | Sets the max string length for the parameter output in SQL queries. Set this value to a reasonable number to keep you SQL queries readable. |
Method | Description | |
---|---|---|
fillInValue ( mixed $value ) : string | Fills in a value of a binding and truncates the resulting string if necessary. | |
normalizeBindings ( array $bindings ) : array | Normalizes the bindings. | |
normalizeSlots ( string $sql ) : string | Normalizes the slots in an SQL string. | |
output ( string $str ) : void | Dependending on the current mode of operation, this method will either log and output to STDIN or just log. |
Method | Description | |
---|---|---|
writeQuery ( string $newSql, $newBindings ) : string | Writes a query for logging with all bindings / params filled in. |
protected fillInValue ( mixed $value ) : string | ||
$value | mixed | bound value |
return | string |
protected normalizeBindings ( array $bindings ) : array | ||
$bindings | array | bindings to normalize |
return | array |
protected normalizeSlots ( string $sql ) : string | ||
$sql | string | sql to normalize |
return | string |
public setParamStringLength ( integer $len = 20 ) : self | ||
$len | integer | string length |
return | self |