프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_castedExpressions | string | Whether or not values have been casted to expressions already. | |
$_columns | array | List of columns to ensure are part of the insert. | |
$_query | The Query object to use as a values expression | ||
$_values | array | Array of values to insert. |
메소드 | 설명 | |
---|---|---|
__construct ( array $columns, Cake\Database\TypeMap $typeMap ) | Constructor | |
add ( array | |
Add a row of data to be inserted. | |
columns ( array | null $cols = null ) : array | $this | Sets the columns to be inserted. If no params are passed, then it returns the currently stored columns | |
query ( |
Sets the query object to be used as the values expression to be evaluated to insert records in the table. If no params are passed, then it returns the currently stored query | |
sql ( |
Convert the values into a SQL string with placeholders. | |
traverse ( callable $visitor ) : void | Traverse the values expression. | |
values ( array | null $values = null ) : array | $this | Sets the values to be inserted. If no params are passed, then it returns the currently stored values |
메소드 | 설명 | |
---|---|---|
_columnNames ( ) : array | Get the bare column names. | |
_processExpressions ( ) : void | Converts values that need to be casted to expressions |
public __construct ( array $columns, Cake\Database\TypeMap $typeMap ) | ||
$columns | array | The list of columns that are going to be part of the values. |
$typeMap | Cake\Database\TypeMap | A dictionary of column -> type names |
protected _columnNames ( ) : array | ||
리턴 | array |
protected _processExpressions ( ) : void | ||
리턴 | void |
protected string $_castedExpressions | ||
리턴 | string |
protected array $_columns | ||
리턴 | array |
protected Query,Cake\Database|null $_query | ||
리턴 |