Method | Description | |
---|---|---|
__construct ( FluentPDO $fpdo, string $table, $values ) | InsertQuery constructor. | |
delayed ( ) : InsertQuery | Force insert operation delay support | |
execute ( mixed $sequence = null ) : integer | Execute insert query | |
ignore ( ) : InsertQuery | Force insert operation to fail silently | |
onDuplicateKeyUpdate ( array $values ) : InsertQuery | Add ON DUPLICATE KEY UPDATE | |
values ( $values ) : InsertQuery | Add VALUES |
Method | Description | |
---|---|---|
buildParameters ( ) : array | ||
filterLiterals ( $statements ) : array | Removes all FluentLiteral instances from the argument since they are not to be used as PDO parameters but rather injected directly into the query | |
getClauseInsertInto ( ) : string | ||
getClauseOnDuplicateKeyUpdate ( ) : string | ||
getClauseValues ( ) : string | ||
parameterGetValue ( $param ) : string |
Method | Description | |
---|---|---|
addOneValue ( array $oneValue ) |
public __construct ( FluentPDO $fpdo, string $table, $values ) | ||
$fpdo | FluentPDO | |
$table | string | |
$values |
public delayed ( ) : InsertQuery | ||
return | InsertQuery |
protected filterLiterals ( $statements ) : array | ||
$statements | ||
return | array |
protected getClauseOnDuplicateKeyUpdate ( ) : string | ||
return | string |
public ignore ( ) : InsertQuery | ||
return | InsertQuery |
public onDuplicateKeyUpdate ( array $values ) : InsertQuery | ||
$values | array | |
return | InsertQuery |
protected parameterGetValue ( $param ) : string | ||
$param | ||
return | string |
public values ( $values ) : InsertQuery | ||
$values | ||
return | InsertQuery |