fixed compilation and tests
This commit is contained in:
@@ -30,7 +30,7 @@ public:
|
||||
[[nodiscard]] bool has_alias() const;
|
||||
[[nodiscard]] std::string alias() const;
|
||||
|
||||
[[nodiscard]] std::shared_ptr<table> table() const;
|
||||
[[nodiscard]] std::shared_ptr<class table> table() const;
|
||||
void table(const std::shared_ptr<query::table>& t);
|
||||
|
||||
operator const std::string&() const;
|
||||
|
||||
@@ -26,11 +26,11 @@ public:
|
||||
|
||||
class query_alter_table_part final : public query_part {
|
||||
public:
|
||||
explicit query_alter_table_part(table tab);
|
||||
explicit query_alter_table_part(class table tab);
|
||||
|
||||
void accept(query_part_visitor &visitor) override;
|
||||
|
||||
[[nodiscard]] const table& table() const;
|
||||
[[nodiscard]] const class table& table() const;
|
||||
|
||||
private:
|
||||
query::table table_;
|
||||
@@ -68,10 +68,10 @@ private:
|
||||
|
||||
class query_add_foreign_key_reference_part final : public query_part {
|
||||
public:
|
||||
explicit query_add_foreign_key_reference_part(table tab, const std::vector<column>& columns);
|
||||
explicit query_add_foreign_key_reference_part(class table tab, const std::vector<column>& columns);
|
||||
void accept(query_part_visitor &visitor) override;
|
||||
|
||||
[[nodiscard]] const table& table() const;
|
||||
[[nodiscard]] const class table& table() const;
|
||||
[[nodiscard]] const std::vector<column>& columns() const;
|
||||
|
||||
private:
|
||||
@@ -116,9 +116,9 @@ private:
|
||||
class query_from_part final : public query_part
|
||||
{
|
||||
public:
|
||||
explicit query_from_part(table t);
|
||||
explicit query_from_part(class table tab);
|
||||
|
||||
[[nodiscard]] const table& table() const;
|
||||
[[nodiscard]] const class table& table() const;
|
||||
|
||||
private:
|
||||
void accept(query_part_visitor &visitor) override;
|
||||
@@ -130,9 +130,9 @@ private:
|
||||
class query_join_part final : public query_part
|
||||
{
|
||||
public:
|
||||
explicit query_join_part(table t);
|
||||
explicit query_join_part(class table tab);
|
||||
|
||||
[[nodiscard]] const table& table() const;
|
||||
[[nodiscard]] const class table& table() const;
|
||||
|
||||
private:
|
||||
void accept(query_part_visitor &visitor) override;
|
||||
@@ -189,9 +189,9 @@ protected:
|
||||
class query_group_by_part final : public query_part
|
||||
{
|
||||
public:
|
||||
explicit query_group_by_part(column col);
|
||||
explicit query_group_by_part(class column col);
|
||||
|
||||
[[nodiscard]] const column& column() const;
|
||||
[[nodiscard]] const class column& column() const;
|
||||
|
||||
private:
|
||||
void accept(query_part_visitor &visitor) override;
|
||||
@@ -203,9 +203,9 @@ private:
|
||||
class query_order_by_part final : public query_part
|
||||
{
|
||||
public:
|
||||
explicit query_order_by_part(column col);
|
||||
explicit query_order_by_part(class column col);
|
||||
|
||||
[[nodiscard]] const column& column() const;
|
||||
[[nodiscard]] const class column& column() const;
|
||||
|
||||
private:
|
||||
void accept(query_part_visitor &visitor) override;
|
||||
@@ -272,9 +272,9 @@ private:
|
||||
class query_into_part final : public query_part
|
||||
{
|
||||
public:
|
||||
query_into_part(table t, std::vector<column> columns);
|
||||
query_into_part(class table tab, std::vector<column> columns);
|
||||
|
||||
[[nodiscard]] const table& table() const;
|
||||
[[nodiscard]] const class table& table() const;
|
||||
[[nodiscard]] const std::vector<column>& columns() const;
|
||||
|
||||
private:
|
||||
@@ -304,9 +304,9 @@ private:
|
||||
class query_update_part final : public query_part
|
||||
{
|
||||
public:
|
||||
explicit query_update_part(table table);
|
||||
explicit query_update_part(class table tab);
|
||||
|
||||
[[nodiscard]] const table& table() const;
|
||||
[[nodiscard]] const class table& table() const;
|
||||
|
||||
private:
|
||||
void accept(query_part_visitor &visitor) override;
|
||||
@@ -341,9 +341,9 @@ private:
|
||||
class query_delete_from_part final : public query_part
|
||||
{
|
||||
public:
|
||||
explicit query_delete_from_part(table table);
|
||||
explicit query_delete_from_part(class table tab);
|
||||
|
||||
[[nodiscard]] const table& table() const;
|
||||
[[nodiscard]] const class table& table() const;
|
||||
|
||||
private:
|
||||
void accept(query_part_visitor &visitor) override;
|
||||
@@ -364,9 +364,9 @@ private:
|
||||
class query_create_table_part final : public query_part
|
||||
{
|
||||
public:
|
||||
query_create_table_part(table table, std::vector<object::attribute> columns);
|
||||
query_create_table_part(class table tab, std::vector<object::attribute> columns);
|
||||
|
||||
[[nodiscard]] const table& table() const;
|
||||
[[nodiscard]] const class table& table() const;
|
||||
[[nodiscard]] const std::vector<object::attribute>& columns() const;
|
||||
|
||||
private:
|
||||
@@ -402,9 +402,9 @@ private:
|
||||
class query_drop_table_part final : public query_part
|
||||
{
|
||||
public:
|
||||
explicit query_drop_table_part(table table);
|
||||
explicit query_drop_table_part(class table tab);
|
||||
|
||||
[[nodiscard]] const table& table() const;
|
||||
[[nodiscard]] const class table& table() const;
|
||||
|
||||
private:
|
||||
void accept(query_part_visitor &visitor) override;
|
||||
|
||||
@@ -16,7 +16,7 @@ public:
|
||||
table(const char *name); // NOLINT(*-explicit-constructor)
|
||||
table(std::string name); // NOLINT(*-explicit-constructor)
|
||||
table(std::string name, std::string as);
|
||||
table(std::string name, std::string as, const std::vector<column> &columns);
|
||||
table(std::string name, std::string as, const std::vector<class column> &columns);
|
||||
|
||||
table& as(const std::string &a);
|
||||
|
||||
@@ -28,9 +28,9 @@ public:
|
||||
|
||||
[[nodiscard]] const std::string& name() const;
|
||||
[[nodiscard]] const std::string& alias() const;
|
||||
[[nodiscard]] const std::vector<column>& columns() const;
|
||||
[[nodiscard]] const std::vector<class column>& columns() const;
|
||||
|
||||
[[nodiscard]] column column(const std::string &name) const;
|
||||
[[nodiscard]] class column column(const std::string &name) const;
|
||||
|
||||
operator const std::vector<query::column>&() const;
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user