blob: 1e85bb8391add4b80c567267ef73548fa5f8fdba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "formatdropindex.h"
#include "parser/ast/sqlitedropindex.h"
FormatDropIndex::FormatDropIndex(SqliteDropIndex* dropIndex) :
dropIndex(dropIndex)
{
}
void FormatDropIndex::formatInternal()
{
withKeyword("DROP").withKeyword("INDEX");
if (dropIndex->ifExistsKw)
withKeyword("IF").withKeyword("EXISTS");
if (!dropIndex->database.isNull())
withId(dropIndex->database).withIdDot();
withId(dropIndex->index).withSemicolon();
}
|