5#ifndef TABLEAU_HYPER_TABLENAME_HPP
6#define TABLEAU_HYPER_TABLENAME_HPP
33 TableName(
DatabaseName databaseName,
Name schemaName,
Name name) : schemaName_({std::move(databaseName), std::move(schemaName)}), name_(std::move(name)) {}
48 bool isFullyQualified() const noexcept {
return schemaName_.has_value() && schemaName_->isFullyQualified(); }
63inline bool operator==(
const TableName& a,
const TableName& b)
noexcept {
return (a.getSchemaName() == b.getSchemaName()) && (a.getName() == b.getName()); }
74#include <hyperapi/impl/TableName.impl.hpp>
Represents an escaped SQL database name.
Represents an escaped SQL name.
Represents an escaped SQL schema name.
Represents an escaped SQL table name.
TableName(const char *name)
Constructor for a non-qualified table name.
std::string toString() const
bool isFullyQualified() const noexcept
const optional< SchemaName > & getSchemaName() const noexcept
TableName(SchemaName schemaName, Name name)
Constructor for a partly qualified table name.
TableName(Name name)
Constructor for a non-qualified table name.
TableName(std::string name)
Constructor for a non-qualified table name.
const Name & getName() const noexcept
const optional< DatabaseName > & getDatabaseName() const noexcept
TableName(DatabaseName databaseName, Name schemaName, Name name)
Constructor for a fully qualified table name.
Surrogate for C++17 std::optional
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.