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)
Wed, Nov 6, 5:51 PM
Unknown Object (File)
Wed, Oct 16, 5:45 AM
Unknown Object (File)
Oct 15 2024, 2:45 PM
Unknown Object (File)
Oct 15 2024, 1:04 PM
Unknown Object (File)
Oct 15 2024, 1:03 PM
Unknown Object (File)
Oct 15 2024, 1:03 PM
Unknown Object (File)
Sep 28 2024, 3:18 PM
Unknown Object (File)
Sep 4 2024, 8:30 AM
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
No Lint Coverage
Unit
No Test Coverage

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.