File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 991010 }
1111 ],
12- "version" : " 0.0.18 " ,
12+ "version" : " 0.0.19 " ,
1313 "autoload" : {
1414 "psr-4" : {
1515 "MyDB\\ " : " src/"
Original file line number Diff line number Diff line change @@ -31,6 +31,17 @@ abstract class AQueryBuilder implements IQueryBuilder {
3131 abstract protected function getWhereClause (): ?string ;
3232 abstract protected function getGroupByClause (): ?string ;
3333 abstract protected function getOrderByClause (): ?string ;
34+
35+ public function flush (): void {
36+ $ this ->columns = ['* ' ];
37+ $ this ->params = [];
38+ $ this ->where = [];
39+ $ this ->having = null ;
40+ $ this ->groupBy = [];
41+ $ this ->orderBy = [];
42+ $ this ->limitStart = 0 ;
43+ $ this ->limitTake = 0 ;
44+ }
3445 public function useDb (MyDB $ db ): void {
3546 $ this ->db = $ db ;
3647 }
Original file line number Diff line number Diff line change @@ -52,4 +52,5 @@ public function insertMultiple(array $data): bool;
5252 * @param array<string, int|string|float|bool|null> $data
5353 */
5454 public function update (array $ data ): bool ;
55+ public function flush (): void ;
5556}
You can’t perform that action at this time.
0 commit comments