aboutsummaryrefslogtreecommitdiffstats
path: root/Plugins/SqlEnterpriseFormatter/formatreindex.cpp
blob: 13613966e66d33d3ad519ca0c50b2a7d69644b9f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "formatreindex.h"
#include "parser/ast/sqlitereindex.h"

FormatReindex::FormatReindex(SqliteReindex* reindex) :
    reindex(reindex)
{
}

void FormatReindex::formatInternal()
{
    handleExplainQuery(reindex);
    withKeyword("REINDEX");
    if (!reindex->database.isNull())
        withId(reindex->database).withIdDot();

    withId(reindex->table).withSemicolon();
}