Represents a database column. More...
#include <column.hpp>
Inherits detail::token.
Public Member Functions | |
column (std::string col, const field_attributes &attr=null_attributes) | |
Creates a new column with given name. | |
column (std::string name, const matador::any &val, const field_attributes &attr) | |
column (std::string name, t_build_options options, const field_attributes &attr=null_attributes) | |
Creates a new column with given name. | |
template<typename Type > | |
column (std::string name, const Type &val, const field_attributes &attr, typename std::enable_if<!std::is_same< Type, matador::any >::value >::type *=0) | |
void | accept (token_visitor &visitor) override |
Interface according to the visitor pattern. | |
Public Attributes | |
std::string | name |
t_build_options | build_options {t_build_options::with_quotes} |
value | val |
data_type | type {data_type::type_unknown} |
field_attributes | attributes |
std::size_t | index {} |
Represents a database column.
Represents a database column consisting of name.
|
explicit |
Creates a new column with given name.
col | The name of the column |
attr | Field attributes of the column |
matador::column::column | ( | std::string | name, |
t_build_options | options, | ||
const field_attributes & | attr = null_attributes |
||
) |
Creates a new column with given name.
name | The name of the column |
options | True if the column shouldn't get quotes |
attr | Field attributes of the column |
|
override |
Interface according to the visitor pattern.
visitor | The visitor object to be accepted |
std::string matador::column::name |
Name of the column