mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-05-20 02:28:42 -05:00
blob WIP
This commit is contained in:
@@ -28,7 +28,9 @@
|
||||
#define SQLPP_BLOB_DATA_TYPE_H
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <sqlpp11/type_traits.h>
|
||||
#include <sqlpp11/logic.h>
|
||||
|
||||
namespace sqlpp
|
||||
{
|
||||
@@ -38,7 +40,7 @@ namespace sqlpp
|
||||
using _cpp_value_type = std::vector<std::uint8_t>;
|
||||
|
||||
template <typename T>
|
||||
using _is_valid_operand = is_blob_t<T>;
|
||||
using _is_valid_operand = ::sqlpp::logic::any_t<is_blob_t<T>::value, is_text_t<T>::value>;
|
||||
};
|
||||
|
||||
using blob = blob;
|
||||
|
||||
@@ -46,6 +46,13 @@ namespace sqlpp
|
||||
using type = like_t<wrap_operand_t<L>, wrap_operand_t<R>>;
|
||||
};
|
||||
|
||||
template <typename L, typename R>
|
||||
struct return_type_like<L, R, binary_operand_check_t<L, is_blob_t, R, is_text_t>>
|
||||
{
|
||||
using check = consistent_t;
|
||||
using type = like_t<wrap_operand_t<L>, wrap_operand_t<R>>;
|
||||
};
|
||||
|
||||
template <typename Expression>
|
||||
struct expression_operators<Expression, blob> : public basic_expression_operators<Expression>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user