Esempio n. 1
0
 public function insert(&$data)
 {
     $data = $this->process_data($data);
     $sql = new SQLBuilder($this->conn, $this->get_fully_qualified_table_name());
     $sql->insert($data, $this->pk[0], $this->sequence);
     $values = array_values($data);
     return $this->conn->query($this->last_sql = $sql->to_s(), $values);
 }
Esempio n. 2
0
 public function insert(&$data, $pk = null, $sequence_name = null)
 {
     $data = $this->processData($data);
     $sql = new SQLBuilder($this->conn, $this->getFullyQualifiedTableName());
     $sql->insert($data, $pk, $sequence_name);
     $values = \array_values($data);
     return $this->conn->query($this->last_sql = $sql->toString(), $values);
 }