From 7167ce41b61d2ba2cdb526777a4233eb84a3b66a Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sat, 6 Dec 2014 17:33:25 -0500 Subject: Imported Upstream version 2.99.6 --- Plugins/SqlEnterpriseFormatter/formatselect.h | 103 ++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 Plugins/SqlEnterpriseFormatter/formatselect.h (limited to 'Plugins/SqlEnterpriseFormatter/formatselect.h') diff --git a/Plugins/SqlEnterpriseFormatter/formatselect.h b/Plugins/SqlEnterpriseFormatter/formatselect.h new file mode 100644 index 0000000..8cc4f5f --- /dev/null +++ b/Plugins/SqlEnterpriseFormatter/formatselect.h @@ -0,0 +1,103 @@ +#ifndef FORMATSELECT_H +#define FORMATSELECT_H + +#include "formatstatement.h" +#include "parser/ast/sqliteselect.h" + +class FormatSelect : public FormatStatement +{ + public: + FormatSelect(SqliteSelect *select); + + protected: + void formatInternal(); + + private: + SqliteSelect* select = nullptr; +}; + +class FormatSelectCore : public FormatStatement +{ + public: + FormatSelectCore(SqliteSelect::Core *core); + + protected: + void formatInternal(); + + private: + SqliteSelect::Core* core = nullptr; +}; + +class FormatSelectCoreResultColumn : public FormatStatement +{ + public: + FormatSelectCoreResultColumn(SqliteSelect::Core::ResultColumn *resCol); + + protected: + void formatInternal(); + + private: + SqliteSelect::Core::ResultColumn *resCol = nullptr; +}; + +class FormatSelectCoreSingleSource : public FormatStatement +{ + public: + FormatSelectCoreSingleSource(SqliteSelect::Core::SingleSource *singleSource); + + protected: + void formatInternal(); + + private: + SqliteSelect::Core::SingleSource *singleSource = nullptr; +}; + +class FormatSelectCoreJoinOp : public FormatStatement +{ + public: + FormatSelectCoreJoinOp(SqliteSelect::Core::JoinOp *joinOp); + + protected: + void formatInternal(); + + private: + SqliteSelect::Core::JoinOp *joinOp = nullptr; +}; + +class FormatSelectCoreJoinConstraint : public FormatStatement +{ + public: + FormatSelectCoreJoinConstraint(SqliteSelect::Core::JoinConstraint *joinConstr); + + protected: + void formatInternal(); + + private: + SqliteSelect::Core::JoinConstraint *joinConstr = nullptr; +}; + +class FormatSelectCoreJoinSourceOther : public FormatStatement +{ + public: + FormatSelectCoreJoinSourceOther(SqliteSelect::Core::JoinSourceOther *joinSourceOther); + + protected: + void formatInternal(); + + private: + SqliteSelect::Core::JoinSourceOther *joinSourceOther = nullptr; +}; + +class FormatSelectCoreJoinSource : public FormatStatement +{ + public: + FormatSelectCoreJoinSource(SqliteSelect::Core::JoinSource *joinSource); + + protected: + void formatInternal(); + + private: + SqliteSelect::Core::JoinSource *joinSource = nullptr; +}; + +#endif // FORMATSELECT_H -- cgit v1.2.3