@@ 733-741 (lines=9) @@ | ||
730 | * @param array $data |
|
731 | * @return PDOStatement |
|
732 | */ |
|
733 | public function insertBatch($table, $data=[]): PDOStatement |
|
734 | { |
|
735 | // Get the generated values and sql string |
|
736 | list($sql, $data) = $this->db->insertBatch($table, $data); |
|
737 | ||
738 | return ( ! is_null($sql)) |
|
739 | ? $this->_run('', $table, $sql, $data) |
|
740 | : NULL; |
|
741 | } |
|
742 | ||
743 | /** |
|
744 | * Creates an update clause, and executes it |
|
@@ 769-777 (lines=9) @@ | ||
766 | * @param string $where |
|
767 | * @return int|null |
|
768 | */ |
|
769 | public function updateBatch($table, $data, $where) |
|
770 | { |
|
771 | // Get the generated values and sql string |
|
772 | list($sql, $data) = $this->db->updateBatch($table, $data, $where); |
|
773 | ||
774 | return ( ! is_null($sql)) |
|
775 | ? $this->_run('', $table, $sql, $data) |
|
776 | : NULL; |
|
777 | } |
|
778 | ||
779 | /** |
|
780 | * Insertion with automatic overwrite, rather than attempted duplication |