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
Making the query builder immutable makes code safer and allows the user to write cleaner code.
<?php /** @var \Neat\Database\Connection $db */ $query = new \Neat\Database\Query($db); $usersQuery = $query->from('user', 'u'); $totalUsers = $usersQuery->select('COUNT(1)')->query()->value(); $users = $usersQuery->select('u.*')->limit(5)->query()->rows(); $activeUsersQuery = $usersQuery->where(['active' => true]); $totalActiveUsers = $activeUsersQuery->select('COUNT(1)')->query()->value(); $activeRoles = $activeUsersQuery->select('DISTINCT u.role')->query()->values(); $activeUsers = $activeUsersQuery->select('u.*')->limit(5)->query()->rows();
Making the query builder immutable might break code so we'll need an upgrade path: 1.x release:
2.0 release:
The text was updated successfully, but these errors were encountered:
Create ImmutableQueryBuilder and QueryBuilder interface.
6130a30
Closes #7
Deprecate the Query class #7.
77f3ec1
baukevdw
Successfully merging a pull request may close this issue.
Making the query builder immutable makes code safer and allows the user to write cleaner code.
Making the query builder immutable might break code so we'll need an upgrade path:
1.x release:
2.0 release:
The text was updated successfully, but these errors were encountered: