-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsql_column.h
More file actions
38 lines (29 loc) · 749 Bytes
/
Copy pathsql_column.h
File metadata and controls
38 lines (29 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once
#include <string>
namespace orm
{
namespace sql
{
class sql_column
{
public:
sql_column();
sql_column(const sql_column &other);
sql_column(sql_column &&other);
virtual ~sql_column();
sql_column &operator =(sql_column other);
bool operator ==(const sql_column &other) const;
bool operator !=(const sql_column &other) const;
friend void swap(sql_column &left, sql_column &right);
void SetTable(const std::string &table);
std::string GetTable() const;
void SetColumn(const std::string &column);
std::string GetColumn() const;
std::string GetColumnString() const;
private:
std::string _table;
std::string _column;
};
void swap(sql_column &left, sql_column &right);
};
};