aboutsummaryrefslogtreecommitdiffstats
path: root/Plugins/SqlEnterpriseFormatter/formatselect.h
blob: 8cc4f5f9f80046e14c3633d11534b62791c5db72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
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