MySQL 9.7.1
Source Code Documentation
utilities.h File Reference
#include <cassert>
#include <memory>
#include <optional>
#include <set>
#include <string>
#include "helper/json/merge.h"
#include "mrs/endpoint/content_file_endpoint.h"
#include "mrs/endpoint/content_set_endpoint.h"
#include "mrs/endpoint/db_object_endpoint.h"
#include "mrs/endpoint/db_schema_endpoint.h"
#include "mrs/endpoint/db_service_endpoint.h"
#include "mrs/http/error.h"

Go to the source code of this file.

Namespaces

namespace  mrs
 
namespace  mrs::endpoint
 
namespace  mrs::endpoint::handler
 

Typedefs

using mrs::endpoint::handler::Protocols = std::set< std::string >
 

Functions

template<typename Type >
std::shared_ptr< Typemrs::endpoint::handler::lock_or_throw_unavail (std::weak_ptr< Type > &endpoint)
 
template<typename Type >
std::shared_ptr< Typemrs::endpoint::handler::lock (const std::weak_ptr< Type > &endpoint)
 
template<typename Type >
const std::shared_ptr< Type > & mrs::endpoint::handler::lock (std::shared_ptr< Type > &endpoint)
 
std::string mrs::endpoint::handler::get_endpoint_host (const ::http::base::Uri &url)
 
std::string mrs::endpoint::handler::get_endpoint_host (std::weak_ptr< mrs::interface::EndpointBase > wp)
 
std::shared_ptr< DbSchemaEndpoint > mrs::endpoint::handler::lock_parent (const std::shared_ptr< DbObjectEndpoint > &endpoint)
 
std::shared_ptr< DbServiceEndpoint > mrs::endpoint::handler::lock_parent (const std::shared_ptr< DbSchemaEndpoint > &endpoint)
 
std::shared_ptr< ContentSetEndpoint > mrs::endpoint::handler::lock_parent (ContentFileEndpoint *endpoint)
 
std::shared_ptr< ContentSetEndpoint > mrs::endpoint::handler::lock_parent (const std::shared_ptr< ContentFileEndpoint > &endpoint)
 
std::shared_ptr< DbServiceEndpoint > mrs::endpoint::handler::lock_parent (const std::shared_ptr< ContentSetEndpoint > &endpoint)
 
std::optional< std::string > mrs::endpoint::handler::merge_options (std::optional< std::string > options, std::optional< std::string > parent_options)
 
std::optional< std::string > mrs::endpoint::handler::get_endpoint_options (const std::shared_ptr< DbServiceEndpoint > &endpoint)
 
std::optional< std::string > mrs::endpoint::handler::get_endpoint_options (const std::shared_ptr< DbSchemaEndpoint > &endpoint)
 
std::optional< std::string > mrs::endpoint::handler::get_endpoint_options (const std::shared_ptr< DbObjectEndpoint > &endpoint)
 
std::optional< std::string > mrs::endpoint::handler::get_endpoint_options (const std::shared_ptr< ContentSetEndpoint > &endpoint)
 
std::optional< std::string > mrs::endpoint::handler::get_endpoint_options (const std::shared_ptr< ContentFileEndpoint > &endpoint)
 
Protocols mrs::endpoint::handler::get_endpoint_protocol (std::shared_ptr< DbServiceEndpoint > &endpoint)
 
template<typename Endpoint >
Protocols mrs::endpoint::handler::get_endpoint_protocol (std::shared_ptr< Endpoint > &endpoint)
 

Variables

const uint64_t mrs::endpoint::handler::k_default_items_on_page = 25