| @@ 57-64 (lines=8) @@ | ||
| 54 | return $this->query(); |
|
| 55 | } |
|
| 56 | ||
| 57 | public function update($table, $data) |
|
| 58 | { |
|
| 59 | $this->operation = 'UPDATE'; |
|
| 60 | $this->table = $table; |
|
| 61 | $this->cols = $data; |
|
| 62 | $result = $this->query(); |
|
| 63 | return $result->pdoResult->rowCount(); |
|
| 64 | } |
|
| 65 | ||
| 66 | public function delete($table) |
|
| 67 | { |
|
| @@ 66-72 (lines=7) @@ | ||
| 63 | return $result->pdoResult->rowCount(); |
|
| 64 | } |
|
| 65 | ||
| 66 | public function delete($table) |
|
| 67 | { |
|
| 68 | $this->operation = 'DELETE'; |
|
| 69 | $this->table = $table; |
|
| 70 | $result = $this->query(); |
|
| 71 | return $result->pdoResult->rowCount(); |
|
| 72 | } |
|
| 73 | ||
| 74 | public function createTable($table_name, $cols, $indexes = []) |
|
| 75 | { |
|