5#ifndef TABLEAU_HYPER_NAME_HPP
6#define TABLEAU_HYPER_NAME_HPP
23 std::string unescaped_;
41 const std::string&
toString()
const {
return name_; }
44 bool isEmpty() const noexcept {
return name_.empty(); }
59inline bool operator<(
const Name& a,
const Name& b)
noexcept {
return a.getUnescaped() < b.getUnescaped(); }
61inline bool operator==(
const Name& a,
const Name& b)
noexcept {
return a.getUnescaped() == b.getUnescaped(); }
71#include <hyperapi/impl/Name.impl.hpp>
Represents an escaped SQL name.
Name(std::string name)
Constructs a properly quoted and escaped SQL name.
const std::string & toString() const
bool isEmpty() const noexcept
Name(const char *name)
Constructs a properly quoted and escaped SQL name.
const std::string & getUnescaped() const
The primary namespace of the Hyper API for C++.
bool operator<(const DatabaseName &a, const DatabaseName &b) noexcept
Smaller operator.
bool operator==(const DatabaseName &a, const DatabaseName &b) noexcept
Equality operator.
bool operator>(const DatabaseName &a, const DatabaseName &b) noexcept
Greater operator.
bool operator!=(const DatabaseName &a, const DatabaseName &b) noexcept
Not equal operator.
bool operator>=(const DatabaseName &a, const DatabaseName &b) noexcept
Greater or equal operator.
std::ostream & operator<<(std::ostream &os, const DatabaseName &name)
Stream output operator.
bool operator<=(const DatabaseName &a, const DatabaseName &b) noexcept
Smaller or equal operator.