26 lines
495 B
C++
26 lines
495 B
C++
#ifndef QUERY_COLUMN_HPP
|
|
#define QUERY_COLUMN_HPP
|
|
|
|
#include <string>
|
|
|
|
namespace matador::query {
|
|
|
|
class column {
|
|
public:
|
|
column(const char *name); // NOLINT(*-explicit-constructor)
|
|
column(std::string name); // NOLINT(*-explicit-constructor)
|
|
column(std::string table_name, std::string name, std::string as);
|
|
|
|
column& as(std::string a);
|
|
|
|
std::string table;
|
|
std::string name;
|
|
std::string alias;
|
|
};
|
|
|
|
column operator "" _col(const char *name, size_t len);
|
|
|
|
}
|
|
|
|
#endif //QUERY_COLUMN_HPP
|