Database System 0.1.0
Advanced C++20 Database System with Multi-Backend Support
Loading...
Searching...
No Matches
database_protocol_container.h
Go to the documentation of this file.
1// BSD 3-Clause License
2// Copyright (c) 2025, 🍀☀🌕🌥 🌊
3// See the LICENSE file in the project root for full license information.
4
5#pragma once
6
7#ifdef USE_CONTAINER_SYSTEM
8
9#include "database_protocol.h"
10#include <core/container.h>
11#include <memory>
12
13namespace database::protocol {
14
28class container_protocol_serializer {
29public:
35 static std::vector<uint8_t> serialize_container(const query_request& request);
36
42 static kcenon::common::Result<query_request> deserialize_container_query_request(
43 const std::vector<uint8_t>& data);
44
50 static std::string serialize_to_json(const query_request& request);
51};
52
53} // namespace database::protocol
54
55#endif // USE_CONTAINER_SYSTEM