Méthode | 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. |
Méthode | 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. |
Méthode | 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 |
Résultat | string |
protected normalizeBindings ( array $bindings ) : array | ||
$bindings | array | bindings to normalize |
Résultat | array |
protected normalizeSlots ( string $sql ) : string | ||
$sql | string | sql to normalize |
Résultat | string |
public setParamStringLength ( integer $len = 20 ) : self | ||
$len | integer | string length |
Résultat | self |