blob progress

This commit is contained in:
Sascha Kühl
2024-01-23 16:09:59 +01:00
parent 9c8e402692
commit aa5d32e30c
8 changed files with 58 additions and 6 deletions
+4
View File
@@ -54,6 +54,8 @@ public:
START_QUOTE,
END_QUOTE,
STRING_QUOTE,
BEGIN_BINARY_DATA,
END_BINARY_DATA,
NONE
};
@@ -181,6 +183,8 @@ private:
{token_t::START_QUOTE, "\""},
{token_t::END_QUOTE, "\""},
{token_t::STRING_QUOTE, "'"},
{token_t::BEGIN_BINARY_DATA, "X'"},
{token_t::END_BINARY_DATA, "'"},
{token_t::NONE, ""}
};
+3
View File
@@ -1,6 +1,8 @@
#ifndef QUERY_STRING_HPP
#define QUERY_STRING_HPP
#include "matador/utils/types.hpp"
#include <string>
#include <vector>
@@ -29,6 +31,7 @@ size_t split(const std::string &str, char delim, std::vector<std::string> &value
void replace_all(std::string &in, const std::string &from, const std::string &to);
const std::string& to_string(const std::string &str);
std::string to_string(const blob &data);
/**
* Joins a range of elements as string within a list