create table as

This commit is contained in:
2021-07-18 21:49:13 +02:00
parent 3e913263fc
commit 9afbe6435e
13 changed files with 203 additions and 137 deletions

8
row.h
View File

@@ -10,7 +10,7 @@ namespace usql {
struct ColValue {
virtual bool isNull() { return false; };;;;
virtual bool isNull() { return false; };
virtual int integerValue() { throw Exception("Not supported"); };
@@ -80,22 +80,20 @@ namespace usql {
public:
Row(int cols_count);
Row(const Row &other);
Row &operator=(Row other);
void setColumnNull(int col_index);
void setColumnValue(int col_index, int value);
void setColumnValue(int col_index, double value);
void setColumnValue(int col_index, const std::string &value);
ColValue &operator[](int i) {
return *m_columns[i];
}
ColValue *ithColumn(int i) {
ColValue * ithColumn(int i) const {
return m_columns[i].get();
}