Skip to content

feat(DB): Add ITypedQueryBuilder#58373

Open
provokateurin wants to merge 2 commits intomasterfrom
feat/db/typed-query-builder
Open

feat(DB): Add ITypedQueryBuilder#58373
provokateurin wants to merge 2 commits intomasterfrom
feat/db/typed-query-builder

Conversation

@provokateurin
Copy link
Member

While it's not possible to infer the column types in the query builder for static analysis, this at least makes the column names available, which will already provide a lot more safety than we currently have. This way it is still necessary to cast columns, but at least psalm will be able to warn about columns that weren't selected.

Signed-off-by: provokateurin <kate@provokateurin.de>
@provokateurin provokateurin added this to the Nextcloud 34 milestone Feb 17, 2026
@provokateurin provokateurin requested a review from a team as a code owner February 17, 2026 09:31
@provokateurin provokateurin added enhancement 3. to review Waiting for reviews feature: database Database related DB labels Feb 17, 2026
@provokateurin provokateurin requested review from Altahrim and icewind1991 and removed request for a team February 17, 2026 09:31
@provokateurin provokateurin added the pending documentation This pull request needs an associated documentation update label Feb 17, 2026
Signed-off-by: provokateurin <kate@provokateurin.de>
@provokateurin provokateurin force-pushed the feat/db/typed-query-builder branch from 6199c74 to 3240224 Compare February 17, 2026 09:33
@@ -57,6 +58,13 @@ interface IDBConnection {
*/
public function getQueryBuilder();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While not deprecating it (due to the huge amount of entries it would generate), this method could have a note that getTypedQueryBuilder is preferred now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement feature: database Database related DB pending documentation This pull request needs an associated documentation update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments