Hyper API for C++ 0.0.18825
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 NamegetName () const noexcept
 Returns the name of the column.
 
const SqlTypegetType () 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 70 of file TableDefinition.hpp.

◆ getName()

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

Returns the name of the column.

Definition at line 55 of file TableDefinition.hpp.

◆ getNullability()

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

Returns the Nullability of the column.

Definition at line 65 of file TableDefinition.hpp.

◆ getType()

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

Returns the type of the column.

Definition at line 60 of file TableDefinition.hpp.


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