values() public static method

public static values ( $context, $values )
Beispiel #1
0
 /**
  *
  * insertInto('table')->values([1,2]) => "INSERT INTO table VALUES(1,2)"
  * insertInto('table')->values(['a'=>1, 'b'=>Sql::native('now()')]) => "INSERT INTO table(a,b) VALUES(1,now())"
  * @param unknown $values
  * @return \phprs\ezsql\rules\insert\OnDuplicateKeyUpdateRule
  */
 public function values($values)
 {
     ValuesImpl::values($this->context, $values);
     return new OnDuplicateKeyUpdateRule($this->context);
 }
Beispiel #2
0
 /**
  * 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())"
  * @param unknown $values
  * @return \phprs\ezsql\rules\basic\ExecRule
  */
 public function values($values)
 {
     ValuesImpl::values($this->context, $values);
     return new ExecRule($this->context);
 }