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

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

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

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