Hyper API for C++ 0.0.26479
Hyper client library for C++ applications
Loading...
Searching...
No Matches
hyperapi::TableDefinition::Column Class Referencefinal

A Column of a table definition. More...

#include <TableDefinition.hpp>

Public Member Functions

const Name & getName () const noexcept
 Returns the name of the column.
 
const SqlType & getType () const noexcept
 Returns the type of the column.
 
Nullability getNullability () const noexcept
 Returns the Nullability of the column.
 
const std::string & getCollation () const noexcept
 Returns the collation of the column.
 
 Column (Name name, SqlType type, Nullability nullability=Nullability::Nullable)
 Creates a column.
 
 Column (Name name, SqlType type, std::string collation, Nullability nullability=Nullability::Nullable)
 Creates a column.
 

Detailed Description

Constructor & Destructor Documentation

◆ Column() [1/2]

hyperapi::TableDefinition::Column::Column ( Name  name,
SqlType  type,
Nullability  nullability = Nullability::Nullable 
)

Creates a column.

Parameters
nameThe name
typeThe type
nullabilityThe nullability

◆ Column() [2/2]

hyperapi::TableDefinition::Column::Column ( Name  name,
SqlType  type,
std::string  collation,
Nullability  nullability = Nullability::Nullable 
)

Creates a column.

Parameters
nameThe name
typeThe type
collationThe collation
nullabilityThe nullability
Precondition
The type supports collations.

Member Function Documentation

◆ getCollation()

const std::string & hyperapi::TableDefinition::Column::getCollation ( ) const
inlinenoexcept

Returns the collation of the column.

Definition at line 69 of file TableDefinition.hpp.

◆ getName()

const Name & hyperapi::TableDefinition::Column::getName ( ) const
inlinenoexcept

Returns the name of the column.

Definition at line 54 of file TableDefinition.hpp.

◆ getNullability()

Nullability hyperapi::TableDefinition::Column::getNullability ( ) const
inlinenoexcept

Returns the Nullability of the column.

Definition at line 64 of file TableDefinition.hpp.

◆ getType()

const SqlType & hyperapi::TableDefinition::Column::getType ( ) const
inlinenoexcept

Returns the type of the column.

Definition at line 59 of file TableDefinition.hpp.


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