Skip to content

Commit

Permalink
✨ 新增(Query.php):新增collect()方法以簡化執行查詢的過程
Browse files Browse the repository at this point in the history
這個變更是為了提供一個更直觀的方式來執行查詢,讓使用者可以直接調用collect()方法來獲取查詢結果,從而提高代碼的可讀性和可用性。
  • Loading branch information
mathsgod committed Sep 12, 2024
1 parent 30d62dc commit 9fe394a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ protected function processLimit(
return [intval($this->limit)];
}

public function collect()
{
return $this->execute();
}


public function execute(array $input_parameters = [])
{
Expand Down

0 comments on commit 9fe394a

Please sign in to comment.