Skip to content

Commit 9fe394a

Browse files
committed
✨ 新增(Query.php):新增collect()方法以簡化執行查詢的過程
這個變更是為了提供一個更直觀的方式來執行查詢,讓使用者可以直接調用collect()方法來獲取查詢結果,從而提高代碼的可讀性和可用性。
1 parent 30d62dc commit 9fe394a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Query.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ protected function processLimit(
128128
return [intval($this->limit)];
129129
}
130130

131+
public function collect()
132+
{
133+
return $this->execute();
134+
}
135+
131136

132137
public function execute(array $input_parameters = [])
133138
{

0 commit comments

Comments
 (0)