Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3524758
D12760.id42367.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D12760.id42367.diff
View Options
diff --git a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.h b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.h
--- a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.h
+++ b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.h
@@ -11,6 +11,7 @@
#include "entities/LocalMessageInfo.h"
#include "entities/Media.h"
#include "entities/Message.h"
+#include "entities/SQLiteStatementWrapper.h"
#include "entities/ThreadActivityEntry.h"
#include "entities/UserInfo.h"
@@ -43,6 +44,8 @@
#endif
std::optional<int> getSyncedDatabaseVersion(sqlite3 *db) const;
+ std::vector<MessageEntity>
+ processMessagesResults(SQLiteStatementWrapper &preparedSQL) const;
public:
static std::string sqliteFilePath;
diff --git a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
--- a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
+++ b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
@@ -1390,7 +1390,11 @@
SQLiteQueryExecutor::getConnection(),
getAllMessagesSQL,
"Failed to retrieve all messages.");
+ return this->processMessagesResults(preparedSQL);
+}
+std::vector<MessageEntity> SQLiteQueryExecutor::processMessagesResults(
+ SQLiteStatementWrapper &preparedSQL) const {
std::string prevMsgIdx{};
std::vector<MessageEntity> allMessages;
diff --git a/web/shared-worker/_generated/comm_query_executor.wasm b/web/shared-worker/_generated/comm_query_executor.wasm
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
literal 0
Hc$@<O00001
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 24, 2:24 PM (8 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2700190
Default Alt Text
D12760.id42367.diff (1 KB)
Attached To
Mode
D12760: [SQLite] Factor out SQLiteQueryExecutor::processMessagesResults
Attached
Detach File
Event Timeline
Log In to Comment