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)
Tue, May 14, 12:19 AM
Unknown Object (File)
Apr 13 2024, 10:23 PM
Unknown Object (File)
Mar 7 2024, 11:52 AM
Unknown Object (File)
Mar 7 2024, 3:25 AM
Unknown Object (File)
Feb 19 2024, 2:11 PM
Unknown Object (File)
Feb 17 2024, 6:39 PM
Unknown Object (File)
Feb 15 2024, 1:06 PM
Unknown Object (File)
Feb 14 2024, 10:33 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
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.