We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add public function getCount(string $expression = '1'): int; method to the QueryBuilder.
public function getCount(string $expression = '1'): int;
The getCount method should ignore the query type and select expressions and use $expression as COUNT($expression).
getCount
$expression
COUNT($expression)
/** @var \Neat\Database\Connection $connection */ $userQuery = $connection->select('*')->from('user'); // \Neat\Database\QueryBuilder $userCount = $userQuery->getCount(); // 5 $users = $userQuery->query(); // \Neat\Database\Result
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Add
public function getCount(string $expression = '1'): int;
method to the QueryBuilder.The
getCount
method should ignore the query type and select expressions and use$expression
asCOUNT($expression)
.The text was updated successfully, but these errors were encountered: