Lightweight 0.20260625.0
Loading...
Searching...
No Matches
Lightweight::SqlSchema::ColumnIdentifier Struct Reference

#include <SqlSchema.hpp>

Public Member Functions

bool operator== (ColumnIdentifier const &other) const noexcept
 Equality compares both the owning table and the column name.
 
bool operator!= (ColumnIdentifier const &other) const noexcept
 Inequality is the negation of equality.
 
bool operator< (ColumnIdentifier const &other) const noexcept
 Lexicographic ordering by (table, column) so ColumnIdentifier can be used as a key in ordered containers.
 

Public Attributes

FullyQualifiedTableName table
 Fully qualified table the column belongs to.
 
std::string column
 Column name within the table.
 

Detailed Description

Identifies a single column within a schema (catalog.schema.table.column).

Schema-introspection layer only — distinct from the query-builder DSL type Lightweight::SqlQualifiedTableColumnName.

Definition at line 88 of file SqlSchema.hpp.

Member Function Documentation

◆ operator==()

bool Lightweight::SqlSchema::ColumnIdentifier::operator== ( ColumnIdentifier const &  other) const
inlinenoexcept

Equality compares both the owning table and the column name.

Definition at line 96 of file SqlSchema.hpp.

References column, and table.

◆ operator!=()

bool Lightweight::SqlSchema::ColumnIdentifier::operator!= ( ColumnIdentifier const &  other) const
inlinenoexcept

Inequality is the negation of equality.

Definition at line 102 of file SqlSchema.hpp.

◆ operator<()

bool Lightweight::SqlSchema::ColumnIdentifier::operator< ( ColumnIdentifier const &  other) const
inlinenoexcept

Lexicographic ordering by (table, column) so ColumnIdentifier can be used as a key in ordered containers.

Definition at line 108 of file SqlSchema.hpp.

References column, and table.

Member Data Documentation

◆ table

FullyQualifiedTableName Lightweight::SqlSchema::ColumnIdentifier::table

Fully qualified table the column belongs to.

Definition at line 91 of file SqlSchema.hpp.

Referenced by operator<(), and operator==().

◆ column

std::string Lightweight::SqlSchema::ColumnIdentifier::column

Column name within the table.

Definition at line 93 of file SqlSchema.hpp.

Referenced by operator<(), and operator==().


The documentation for this struct was generated from the following file: