[EGD-4553] Notes search engine implemented. (#1112)

This commit is contained in:
Piotr Tanski
2020-12-01 10:30:38 +01:00
committed by GitHub
parent 3a924e7d42
commit 5d757a6dc0
27 changed files with 605 additions and 12 deletions

View File

@@ -0,0 +1,33 @@
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "QueryNotesGetByText.hpp"
namespace db::query
{
QueryNotesGetByText::QueryNotesGetByText(std::string text) : Query(Query::Type::Read), text{std::move(text)}
{}
const std::string &QueryNotesGetByText::getText() const noexcept
{
return text;
}
std::string QueryNotesGetByText::debugInfo() const
{
return {"QueryNotesGetByText"};
}
NotesGetByTextResult::NotesGetByTextResult(std::vector<NotesRecord> notes) : records{std::move(notes)}
{}
const std::vector<NotesRecord> &NotesGetByTextResult::getRecords() const noexcept
{
return records;
}
auto NotesGetByTextResult::debugInfo() const -> std::string
{
return {"NotesGetByTextResult"};
}
} // namespace db::query