26#ifndef ROUTER_SRC_REST_MRS_SRC_MRS_RESPONSE_ITEMS_FORMATTER_H_ 
   27#define ROUTER_SRC_REST_MRS_SRC_MRS_RESPONSE_ITEMS_FORMATTER_H_ 
   47                                const bool include_links = 
true);
 
   49  void begin_resultset(
const std::string &url, 
const std::string &items_name,
 
   50                       const std::vector<helper::Column> &columns) 
override;
 
   52      uint64_t offset, uint64_t limit, 
bool is_default_limit,
 
   53      const std::string &url,
 
   54      const std::vector<helper::Column> &columns) 
override;
 
   57                const char *ignore_column = 
nullptr) 
override;
 
   58  void end_resultset(
const std::optional<bool> &has_more = {}) 
override;
 
   59  void begin() 
override;
 
   62  void flush() 
override;
 
   85  const std::vector<helper::Column> *
columns_{
nullptr};
 
Definition: serializer_to_text.h:85
 
Definition: serializer_to_text.h:47
 
Definition: serializer_to_text.h:45
 
Definition: json_template.h:39
 
std::map< std::string, std::string > CustomMetadata
Definition: json_template.h:42
 
Definition: response_json_template.h:40
 
uint64_t pushed_documents_
Definition: response_json_template.h:83
 
bool push_json_document(const char *document) override
Definition: response_json_template.cc:227
 
void finish(const CustomMetadata &custom_metadata={}) override
Definition: response_json_template.cc:157
 
uint64_t offset_
Definition: response_json_template.h:70
 
bool include_links_
Definition: response_json_template.h:87
 
const std::vector< helper::Column > * columns_
Definition: response_json_template.h:85
 
JsonSerializer::Object json_root_
Definition: response_json_template.h:78
 
ResponseJsonTemplate(bool encode_bigints_as_string=false, const bool include_links=true)
Definition: response_json_template.cc:45
 
void begin_resultset(const std::string &url, const std::string &items_name, const std::vector< helper::Column > &columns) override
Definition: response_json_template.cc:56
 
uint64_t limit_
Definition: response_json_template.h:71
 
void end_resultset(const std::optional< bool > &has_more={}) override
Definition: response_json_template.cc:105
 
std::string url_
Definition: response_json_template.h:74
 
std::string get_result() override
Definition: response_json_template.cc:50
 
bool began_
Definition: response_json_template.h:84
 
bool encode_bigints_as_string_
Definition: response_json_template.h:86
 
bool limit_not_set_
Definition: response_json_template.h:73
 
bool push_row(const ResultRow &values, const char *ignore_column=nullptr) override
Definition: response_json_template.cc:171
 
void begin_resultset_with_limits(uint64_t offset, uint64_t limit, bool is_default_limit, const std::string &url, const std::vector< helper::Column > &columns) override
Definition: response_json_template.cc:81
 
JsonSerializer::Array json_root_items_
Definition: response_json_template.h:79
 
bool count_check_if_push_is_allowed()
Definition: response_json_template.cc:236
 
bool has_more_
Definition: response_json_template.h:82
 
JsonSerializer serializer_
Definition: response_json_template.h:77
 
void begin() override
Definition: response_json_template.cc:155
 
void flush() override
Definition: response_json_template.cc:54
 
bool is_default_limit_
Definition: response_json_template.h:72
 
Definition: mysql_session.h:311
 
Definition: authorize_manager.h:48