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/formatwith.h | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Plugins/SqlEnterpriseFormatter/formatwith.h (limited to 'Plugins/SqlEnterpriseFormatter/formatwith.h') diff --git a/Plugins/SqlEnterpriseFormatter/formatwith.h b/Plugins/SqlEnterpriseFormatter/formatwith.h new file mode 100644 index 0000000..618b73b --- /dev/null +++ b/Plugins/SqlEnterpriseFormatter/formatwith.h @@ -0,0 +1,31 @@ +#ifndef FORMATWITH_H +#define FORMATWITH_H + +#include "formatstatement.h" +#include "parser/ast/sqlitewith.h" + +class FormatWith : public FormatStatement +{ + public: + FormatWith(SqliteWith* with); + + void setLineUpKeyword(const QString& kw); + void formatInternal(); + + private: + SqliteWith *with = nullptr; + QString lineUpKeyword; +}; + +class FormatWithCommonTableExpression : public FormatStatement +{ + public: + FormatWithCommonTableExpression(SqliteWith::CommonTableExpression* cte); + + void formatInternal(); + + private: + SqliteWith::CommonTableExpression* cte = nullptr; +}; + +#endif // FORMATWITH_H -- cgit v1.2.3