![]() |
MySQL 9.3.0
Source Code Documentation
|
#include <query_changes_db_object.h>
Public Types | |
using | QueryFactory = mrs::interface::QueryFactory |
![]() | |
using | DbObject = entry::DbObject |
using | VectorOfPathEntries = std::vector< DbObject > |
using | SupportedMrsMetadataVersion = mrs::interface::SupportedMrsMetadataVersion |
Public Member Functions | |
QueryChangesDbObject (SupportedMrsMetadataVersion v, QueryFactory *query_factory, const uint64_t last_audit_id) | |
void | query_entries (MySQLSession *session) override |
Fetch from database the list of all defined object/path entries. More... | |
![]() | |
QueryEntriesDbObject (SupportedMrsMetadataVersion v, mrs::interface::QueryFactory *query_factory) | |
virtual uint64_t | get_last_update () |
VectorOfPathEntries | get_entries () const |
Private Member Functions | |
void | query_path_entries (MySQLSession *session, std::vector< DbObjectCompatible > *out, const std::string &table_name, const entry::UniversalId &id) |
std::string | build_query (const std::string &table_name, const entry::UniversalId &id) |
Private Attributes | |
std::set< entry::UniversalId > | path_entries_fetched |
uint64_t | query_length_ |
Additional Inherited Members | |
![]() | |
using | MySQLSession = mysqlrouter::MySQLSession |
using | Row = MySQLSession::Row |
using | ResultRow = MySQLSession::ResultRow |
using | OnResultSetEnd = MySQLSession::OnResultSetEnd |
![]() | |
void | on_row (const ResultRow &r) override |
![]() | |
virtual | ~QueryRaw ()=default |
virtual void | execute (MySQLSession *session) |
virtual void | query (MySQLSession *session, const std::string &q) |
virtual void | prepare_and_execute (MySQLSession *session, const std::string &q, std::vector< MYSQL_BIND > pt, const OnResultSetEnd &on_resultset_end) |
std::unique_ptr< MySQLSession::ResultRow > | query_one (MySQLSession *session) |
std::unique_ptr< MySQLSession::ResultRow > | query_one (MySQLSession *session, const std::string &q) |
virtual void | on_metadata (unsigned number, MYSQL_FIELD *fields) |
![]() | |
static std::string | skip_starting_slash (const std::string &value) |
![]() | |
SupportedMrsMetadataVersion | db_version_ |
uint64_t | audit_log_id_ {0} |
mrs::interface::QueryFactory * | query_factory_ |
std::vector< DbObjectCompatible > | entries_ |
![]() | |
mysqlrouter::sqlstring | query_ |
std::optional< std::string > | sqlstate_ |
MYSQL_FIELD * | metadata_ {nullptr} |
unsigned | num_of_metadata_ {0} |
mrs::database::QueryChangesDbObject::QueryChangesDbObject | ( | SupportedMrsMetadataVersion | v, |
QueryFactory * | query_factory, | ||
const uint64_t | last_audit_id | ||
) |
|
private |
|
overridevirtual |
Fetch from database the list of all defined object/path entries.
Except fetching the list, it also tries to fetch matching audit_log.id
.
Reimplemented from mrs::database::QueryEntriesDbObject.
|
private |
|
private |
|
private |