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)
Fri, Jun 14, 8:54 AM
Unknown Object (File)
Wed, Jun 12, 9:33 PM
Unknown Object (File)
Sat, Jun 1, 8:27 AM
Unknown Object (File)
Thu, May 23, 6:11 AM
Unknown Object (File)
Tue, May 21, 11:33 AM
Unknown Object (File)
Tue, May 21, 11:32 AM
Unknown Object (File)
Tue, May 21, 11:32 AM
Unknown Object (File)
Sat, May 18, 9:28 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
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.