aboutsummaryrefslogtreecommitdiffstats
path: root/Plugins/SqlEnterpriseFormatter/formatanalyze.cpp
blob: 1b7a93975cfd4d4e8f95202ab9c95df97a40ecb4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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();

}