5#include "../SqlColumnTypeDefinitions.hpp"
7#include "StdString.hpp"
18 using value_type = std::string;
22 std::weak_ordering operator<=>(
SqlText const&)
const noexcept =
default;
26struct std::formatter<
SqlText>: std::formatter<std::string>
28 LIGHTWEIGHT_FORCE_INLINE
auto format(
SqlText const& text, format_context& ctx)
const -> format_context::iterator
30 return std::formatter<std::string>::format(text.value, ctx);
35struct SqlBasicStringOperations<
SqlText>
37 using Traits = SqlBasicStringOperations<typename SqlText::value_type>;
39 static constexpr auto ColumnType = SqlColumnTypeDefinitions::Text {};
42 static LIGHTWEIGHT_FORCE_INLINE
char const* Data(
SqlText const* str)
noexcept {
return Traits::Data(&str->value); }
43 static LIGHTWEIGHT_FORCE_INLINE
char* Data(
SqlText* str)
noexcept {
return Traits::Data(&str->value); }
44 static LIGHTWEIGHT_FORCE_INLINE SQLULEN Size(
SqlText const* str)
noexcept {
return Traits::Size(&str->value); }
45 static LIGHTWEIGHT_FORCE_INLINE
void Clear(
SqlText* str)
noexcept { Traits::Clear(&str->value); }
46 static LIGHTWEIGHT_FORCE_INLINE
void Reserve(
SqlText* str,
size_t capacity)
noexcept { Traits::Reserve(&str->value, capacity); }
47 static LIGHTWEIGHT_FORCE_INLINE
void Resize(
SqlText* str, SQLLEN indicator)
noexcept { Traits::Resize(&str->value, indicator); }