pass $bindings to get & getRows methods

This commit is contained in:
Denis Glushkov
2024-04-10 16:59:31 +05:00
parent 9e9c151cc6
commit 474389d941
+4 -4
View File
@@ -53,17 +53,17 @@ class Builder extends BaseBuilder
/**
* @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();
}
/**