17 static constexpr size_t length = (N > 0) ? (N - 1) : 0;
20 [[nodiscard]]
constexpr size_t size() const noexcept
39 std::copy_n(str, N,
value);
46 [[nodiscard]]
constexpr bool empty() const noexcept
52 [[nodiscard]]
constexpr char const*
begin() const noexcept
58 [[nodiscard]]
constexpr char const*
end() const noexcept
68 [[nodiscard]]
constexpr std::string_view
sv() const noexcept
73 [[nodiscard]]
constexpr operator std::string_view() const noexcept
Helper class, used to represent a real SQL column names as template arguments.
constexpr char const * end() const noexcept
Returns a pointer past the end of the name string.
constexpr size_t size() const noexcept
Returns the length of the name string.
constexpr std::string_view sv() const noexcept
Returns the name as a string_view.
constexpr auto operator<=>(SqlRealName const &) const =default
Three-way comparison operator.
constexpr char const * begin() const noexcept
Returns a pointer to the beginning of the name string.
constexpr bool empty() const noexcept
Returns true if the name is empty.
char value[N]
The underlying character buffer storing the name.
static constexpr size_t length
The length of the name string (excluding null terminator).