#include <query_rest_table.h>
|
| | QueryRestTableMedia (uint64_t max_execution_time_ms=0) |
| |
| void | query_media_entries (MySQLSession *session, std::shared_ptr< database::entry::Object > object, const Column &column, const uint64_t offset, const uint64_t limit, const ObjectRowOwnership &row_ownership={}, const FilterObjectGenerator &fog={}) |
| |
| void | query_entry (MySQLSession *session, std::shared_ptr< database::entry::Object > object, const Column &column, const PrimaryKeyColumnValues &pk, const ObjectRowOwnership &row_ownership={}, const FilterObjectGenerator &fog={}) |
| |
| | QueryRestTable (const JsonTemplateFactory *factory=nullptr, bool encode_bigints_as_strings=false, bool include_links=true, uint64_t max_execution_time_ms=0) |
| |
| | QueryRestTable (bool encode_bigints_as_strings, bool include_links, uint64_t max_execution_time_ms=0) |
| |
| virtual void | query_entries (MySQLSession *session, std::shared_ptr< database::entry::Object > object, const ObjectFieldFilter &field_filter, const uint64_t offset, const uint64_t limit, const std::string &url, const bool is_default_limit, const ObjectRowOwnership &row_ownership={}, const FilterObjectGenerator &fog={}, const bool compute_etag=false) |
| |
|
| using | MySQLSession = mysqlrouter::MySQLSession |
| |
| using | Row = MySQLSession::Row |
| |
| using | ResultRow = MySQLSession::ResultRow |
| |
| using | OnResultSetEnd = MySQLSession::OnResultSetEnd |
| |
| void | create_serializer () |
| |
| void | on_metadata (unsigned number, MYSQL_FIELD *fields) override |
| |
| const mysqlrouter::sqlstring & | build_where (const ObjectRowOwnership &row_ownership) |
| |
| const mysqlrouter::sqlstring & | build_where (const RowUserOwnership &row_user, UserId *user_id, const std::vector< RowGroupOwnership > &row_groups, const std::set< UniversalId > &user_groups) |
| |
| void | build_query (const ObjectFieldFilter &field_filter, const uint64_t offset, const uint64_t limit, const std::string &url, const ObjectRowOwnership &row_ownership, const FilterObjectGenerator &fog) |
| |
| void | extend_where (mysqlrouter::sqlstring &where, const FilterObjectGenerator &fog) |
| |
| 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) |
| |
| Config | config_ |
| |
| std::vector< helper::Column > | columns_ |
| |
| std::shared_ptr< database::JsonTemplate > | serializer_ |
| |
| std::shared_ptr< Object > | object_ |
| |
| const ObjectFieldFilter * | field_filter_ {nullptr} |
| |
| bool | compute_etag_ {false} |
| |
| mysqlrouter::sqlstring | where_ |
| |
| bool | metadata_received_ {false} |
| |
| const JsonTemplateFactory * | factory_ |
| |
| bool | encode_bigints_as_strings_ |
| |
| bool | include_links_ |
| |
| uint64_t | max_execution_time_ms_ |
| |
| mysqlrouter::sqlstring | query_ |
| |
| std::optional< std::string > | sqlstate_ |
| |
| MYSQL_FIELD * | metadata_ {nullptr} |
| |
| unsigned | num_of_metadata_ {0} |
| |
◆ Column
◆ QueryRestTableMedia()
| mrs::database::QueryRestTableMedia::QueryRestTableMedia |
( |
uint64_t |
max_execution_time_ms = 0 | ) |
|
|
inlineexplicit |
◆ build_query() [1/2]
◆ build_query() [2/2]
◆ on_row()
| void mrs::database::QueryRestTableMedia::on_row |
( |
const ResultRow & |
r | ) |
|
|
overrideprivatevirtual |
◆ query_entry()
◆ query_media_entries()
| void mrs::database::QueryRestTableMedia::query_media_entries |
( |
MySQLSession * |
session, |
|
|
std::shared_ptr< database::entry::Object > |
object, |
|
|
const Column & |
column, |
|
|
const uint64_t |
offset, |
|
|
const uint64_t |
limit, |
|
|
const ObjectRowOwnership & |
row_ownership = {}, |
|
|
const FilterObjectGenerator & |
fog = {} |
|
) |
| |
◆ media_response
| std::optional<std::string> mrs::database::QueryRestTableMedia::media_response |
The documentation for this class was generated from the following files: