public static function replaceInto($table) { $obj = new ReplaceIntoRule(new SqlConetxt()); return $obj->replaceInto($table); }
public function testForReplace1() { //REPLACE INTO tab VALUES(1,2,now()) $this->db->setExpected('REPLACE INTO tab VALUES(?,?,now())', 1, 2); Sql::replaceInto('tab')->values([1, 2, Sql::native('now()')])->exec($this->db); }