aboutsummaryrefslogtreecommitdiffstats
path: root/Plugins/SqlEnterpriseFormatter/formatselect.h
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins/SqlEnterpriseFormatter/formatselect.h')
-rw-r--r--Plugins/SqlEnterpriseFormatter/formatselect.h103
1 files changed, 103 insertions, 0 deletions
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