Page MenuHomePhabricator

Refactor all replace and update queries not to user ORM.
ClosedPublic

Authored by marcin on Jan 18 2024, 9:12 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 9, 1:20 PM
Unknown Object (File)
Sat, Mar 1, 9:16 AM
Unknown Object (File)
Tue, Feb 25, 4:01 PM
Unknown Object (File)
Feb 22 2025, 1:16 AM
Unknown Object (File)
Feb 22 2025, 1:16 AM
Unknown Object (File)
Feb 22 2025, 1:16 AM
Unknown Object (File)
Feb 8 2025, 3:32 PM
Unknown Object (File)
Feb 7 2025, 8:06 PM
Subscribers

Details

Summary

This differential refactors all replace and update queries not to use ORM.

Test Plan

Execute tests in https://phab.comm.dev/D10711. Replace and update queries are covered there.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil added inline comments.
native/cpp/CommonCpp/DatabaseManagers/entities/EntityQueryHelpers.h
113 โ†—(On Diff #35797)

shouldn't we free the error?

native/cpp/CommonCpp/DatabaseManagers/entities/Thread.h
70 โ†—(On Diff #35797)

I would create couple of functions bindSQLParam(..) with SQL query, index and different types of value and add implementation for each value - this should make it more reusable

This revision is now accepted and ready to land.Jan 25 2024, 6:03 AM
  1. Free error message in executeQuery.
  2. Move binding data to sql query to separate file
This revision was landed with ongoing or failed builds.Feb 6 2024, 6:37 AM
This revision was automatically updated to reflect the committed changes.