blob: 965d6076b5338a0eb9674a9b3ab2f439e07d404f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "formatdropview.h"
#include "parser/ast/sqlitedropview.h"
FormatDropView::FormatDropView(SqliteDropView* dropView) :
dropView(dropView)
{
}
void FormatDropView::formatInternal()
{
withKeyword("DROP").withKeyword("VIEW");
if (dropView->ifExistsKw)
withKeyword("IF").withKeyword("EXISTS");
if (!dropView->database.isNull())
withId(dropView->database).withIdDot();
withId(dropView->view).withSemicolon();
}
|