This commit is contained in:
2021-09-29 17:54:48 +08:00
parent 5ec3ca65e1
commit 2bd723775e
3 changed files with 37 additions and 13 deletions
+14
View File
@@ -38,6 +38,9 @@ trait QueryTrait
public string $alias = 't1';
public array $filter = [];
public bool $lock = false;
public bool $ifNotWhere = false;
@@ -83,6 +86,17 @@ trait QueryTrait
}
/**
* @param bool $lock
* @return $this
*/
public function lock(bool $lock): static
{
$this->lock = $lock;
return $this;
}
/**
* @param string $whereRaw
* @return QueryTrait