PHP Class phprs\ezsql\rules\replace\ValuesRule

Inheritance: extends phprs\ezsql\rules\basic\BasicRule
Show file Open project: caoym/phprs-restful

Public Methods

Method Description
values ( unknown $values ) : ExecRule replaceInto('table')->values([1,2]) => "REPLACE INTO table VALUES(1,2)" replaceInto('table')->values(['a'=>1, 'b'=>Sql::native('now()')]) => "REPLACE INTO table(a,b) VALUES(1,now())"

Method Details

values() public method

replaceInto('table')->values([1,2]) => "REPLACE INTO table VALUES(1,2)" replaceInto('table')->values(['a'=>1, 'b'=>Sql::native('now()')]) => "REPLACE INTO table(a,b) VALUES(1,now())"
public values ( unknown $values ) : ExecRule
$values unknown
return phprs\ezsql\rules\basic\ExecRule