blob: 2bea7933219707ea2bac33b6b07a8cef976e85f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include "formatvacuum.h"
#include "parser/ast/sqlitevacuum.h"
#include "parser/ast/sqliteexpr.h"
FormatVacuum::FormatVacuum(SqliteVacuum* vacuum) :
vacuum(vacuum)
{
}
void FormatVacuum::formatInternal()
{
handleExplainQuery(vacuum);
withKeyword("VACUUM").withSemicolon();
if (!vacuum->database.isNull())
withId(vacuum->database);
if (vacuum->expr)
withKeyword("INTO").withStatement(vacuum->expr);
}
|