Page MenuHomePhabricator

[SQLite] add method for message search to SQLiteQueryExecutor for both web and native
ClosedPublic

Authored by kamil on Jul 22 2024, 10:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 4, 12:29 AM
Unknown Object (File)
Wed, Sep 4, 12:29 AM
Unknown Object (File)
Wed, Sep 4, 12:29 AM
Unknown Object (File)
Wed, Sep 4, 12:29 AM
Unknown Object (File)
Mon, Sep 2, 6:22 AM
Unknown Object (File)
Wed, Aug 28, 4:07 AM
Unknown Object (File)
Tue, Aug 27, 11:27 AM
Unknown Object (File)
Mon, Aug 26, 11:27 AM
Subscribers

Details

Summary

Defining API, logic will be implemented in searchMessages in the next diff.

Depends on D12833

Test Plan

N/A, just defining method arguments and returned type

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Jul 23 2024, 5:03 AM
kamil added inline comments.
native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
2559 ↗(On Diff #42665)

implemented in D12844

native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.h
206 ↗(On Diff #42665)

for the web we need MessageWithMedias, and for native MessageEntity - this can be avoided after ENG-5719

tomek added inline comments.
native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
2625 ↗(On Diff #42665)
2628 ↗(On Diff #42665)

Why do we move only the first item?

This revision is now accepted and ready to land.Jul 23 2024, 6:10 AM
marcin added inline comments.
native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
2628 ↗(On Diff #42665)

The type of messageWithMedia.first is Message. The Message type has unique_ptr fields. Therefore it doesn't have copy constructor so it must be moved when passing to function.

rename

native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
2628 ↗(On Diff #42665)

Thanks!