|
SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
|
Go to the documentation of this file.
7 #ifndef swcdb_broker_Protocol_handlers_ColumnMng_h
8 #define swcdb_broker_Protocol_handlers_ColumnMng_h
14 namespace SWC {
namespace Comm {
namespace Protocol {
15 namespace Bkr {
namespace Handler {
45 if(!
ev->expired() &&
conn->is_open()) {
48 err ?
conn->send_error(err,
"",
ev) :
conn->response_ok(
ev);
61 const uint8_t *ptr = ev->data.base;
62 size_t remain = ev->data.size;
65 params.
decode(&ptr, &remain);
68 params, ev->header.timeout_ms, conn, ev, params.
schema);
73 conn->send_error(e.
code() ,
"", ev);
81 #endif // swcdb_broker_Protocol_handlers_ColumnMng_h
constexpr SWC_CAN_INLINE int code() const noexcept
static constexpr const cid_t NO_CID
static SWC_CAN_INLINE client::Clients::Ptr & get() noexcept
std::shared_ptr< Schema > Ptr
#define SWC_LOG_OUT(pr, _code_)
static SWC_CAN_INLINE bool is_accepting() noexcept
static SWC_CAN_INLINE void request(const Params::ColumnMng ¶ms, const uint32_t timeout, DataArgsT &&... args)
SWC_CAN_INLINE bool valid()
#define SWC_CURRENT_EXCEPTION(_msg_)
The SWC-DB C++ namespace 'SWC'.
SWC_CAN_INLINE void callback(const client::ConnQueue::ReqBase::Ptr &, int err)
SWC_CAN_INLINE ColumnMng(const ConnHandlerPtr &a_conn, const Event::Ptr &a_ev, const DB::Schema::Ptr &a_schema) noexcept
std::shared_ptr< ConnHandler > ConnHandlerPtr
SWC_CAN_INLINE SWC::client::Clients::Ptr & get_clients() noexcept
void decode(const uint8_t **bufp, size_t *remainp)
std::shared_ptr< Event > Ptr
void column_mng(const ConnHandlerPtr &conn, const Event::Ptr &ev)
std::shared_ptr< ConnQueueReqBase > Ptr
static SWC_CAN_INLINE void processed() noexcept