-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2.1.0. Force/Soft Deleting rows (#36)
* feat: added a possibility to delete/force delete rows
- Loading branch information
Showing
30 changed files
with
1,804 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
namespace Lapaliv\BulkUpsert\Builders; | ||
|
||
use Lapaliv\BulkUpsert\Builders\Clauses\BuilderWhere; | ||
use Lapaliv\BulkUpsert\Contracts\BulkBuilderWhereClause; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
class DeleteBulkBuilder implements BulkBuilderWhereClause | ||
{ | ||
use BuilderWhere; | ||
|
||
private string $from; | ||
private int $limit; | ||
|
||
public function from(string $table): static | ||
{ | ||
$this->from = $table; | ||
|
||
return $this; | ||
} | ||
|
||
public function getFrom(): string | ||
{ | ||
return $this->from; | ||
} | ||
|
||
public function limit(int $limit): static | ||
{ | ||
$this->limit = $limit; | ||
|
||
return $this; | ||
} | ||
|
||
public function getLimit(): ?int | ||
{ | ||
return $this->limit; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.