aboutsummaryrefslogtreecommitdiffstats
path: root/Plugins/SqlEnterpriseFormatter/formatanalyze.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins/SqlEnterpriseFormatter/formatanalyze.cpp')
-rw-r--r--Plugins/SqlEnterpriseFormatter/formatanalyze.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/Plugins/SqlEnterpriseFormatter/formatanalyze.cpp b/Plugins/SqlEnterpriseFormatter/formatanalyze.cpp
new file mode 100644
index 0000000..1b7a939
--- /dev/null
+++ b/Plugins/SqlEnterpriseFormatter/formatanalyze.cpp
@@ -0,0 +1,18 @@
+#include "formatanalyze.h"
+#include "parser/ast/sqliteanalyze.h"
+
+FormatAnalyze::FormatAnalyze(SqliteAnalyze* analyze) :
+ analyze(analyze)
+{
+}
+
+void FormatAnalyze::formatInternal()
+{
+ withKeyword("ANALYZE");
+
+ if (!analyze->database.isNull())
+ withId(analyze->database).withIdDot();
+
+ withId(analyze->table).withSemicolon();
+
+}