| @@ 522-534 (lines=13) @@ | ||
| 519 | * |
|
| 520 | * @return $this This QueryBuilder instance. |
|
| 521 | */ |
|
| 522 | public function delete($delete = null, $alias = null) |
|
| 523 | { |
|
| 524 | $this->type = self::DELETE; |
|
| 525 | ||
| 526 | if ( ! $delete) { |
|
| 527 | return $this; |
|
| 528 | } |
|
| 529 | ||
| 530 | return $this->add('from', [ |
|
| 531 | 'table' => $delete, |
|
| 532 | 'alias' => $alias |
|
| 533 | ]); |
|
| 534 | } |
|
| 535 | ||
| 536 | /** |
|
| 537 | * Turns the query being built into a bulk update query that ranges over |
|
| @@ 552-564 (lines=13) @@ | ||
| 549 | * |
|
| 550 | * @return $this This QueryBuilder instance. |
|
| 551 | */ |
|
| 552 | public function update($update = null, $alias = null) |
|
| 553 | { |
|
| 554 | $this->type = self::UPDATE; |
|
| 555 | ||
| 556 | if ( ! $update) { |
|
| 557 | return $this; |
|
| 558 | } |
|
| 559 | ||
| 560 | return $this->add('from', [ |
|
| 561 | 'table' => $update, |
|
| 562 | 'alias' => $alias |
|
| 563 | ]); |
|
| 564 | } |
|
| 565 | ||
| 566 | /** |
|
| 567 | * Turns the query being built into an insert query that inserts into |
|