added alter table command to fluent query builder
This commit is contained in:
@@ -10,8 +10,7 @@ namespace matador::sql {
|
||||
|
||||
struct column;
|
||||
|
||||
class record
|
||||
{
|
||||
class record final {
|
||||
private:
|
||||
using field_ref = std::reference_wrapper<field>;
|
||||
using field_by_index = std::vector<field_ref>;
|
||||
@@ -45,13 +44,11 @@ public:
|
||||
[[nodiscard]] const field& at(const column &col) const;
|
||||
[[nodiscard]] const field& at(size_t index) const;
|
||||
template<class Type>
|
||||
std::optional<Type> at(const column &col) const
|
||||
{
|
||||
std::optional<Type> at(const column &col) const {
|
||||
return at(col).as<Type>();
|
||||
}
|
||||
template<class Type>
|
||||
std::optional<Type> at(size_t index) const
|
||||
{
|
||||
std::optional<Type> at(const size_t index) const {
|
||||
return at(index).as<Type>();
|
||||
}
|
||||
|
||||
@@ -70,8 +67,6 @@ public:
|
||||
[[nodiscard]] bool empty() const;
|
||||
void clear();
|
||||
|
||||
// [[nodiscard]] bool unknown() const;
|
||||
|
||||
private:
|
||||
void init();
|
||||
void add_to_map(field &col, size_t index);
|
||||
@@ -79,8 +74,6 @@ private:
|
||||
private:
|
||||
field_by_index fields_;
|
||||
field_by_name_map fields_by_name_;
|
||||
|
||||
// int pk_index_{-1};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user