메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
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 |
리턴 | string |
protected normalizeBindings ( array $bindings ) : array | ||
$bindings | array | bindings to normalize |
리턴 | array |
protected normalizeSlots ( string $sql ) : string | ||
$sql | string | sql to normalize |
리턴 | string |
public setParamStringLength ( integer $len = 20 ) : self | ||
$len | integer | string length |
리턴 | self |