Hyper API for C++  0.0.16638
Hyper client library for C++ applications
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. More...
 
 Column (Name name, SqlType type, std::string collation, Nullability nullability=Nullability::Nullable)
 Creates a column. More...
 

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.

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