diff --git a/src/Builder.php b/src/Builder.php index 9742679..eb9e6a3 100644 --- a/src/Builder.php +++ b/src/Builder.php @@ -53,17 +53,17 @@ public function getSettings(): array /** * @return Statement */ - public function get(): Statement + public function get(array $bindings = []): Statement { - return $this->client->select($this->toSql()); + return $this->client->select($this->toSql(), $bindings); } /** * @return array */ - public function getRows(): array + public function getRows(array $bindings = []): array { - return $this->get()->rows(); + return $this->get($bindings)->rows(); } /**