aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/coreSQLiteStudio/parser/ast/sqlitereindex.h
blob: 2fe05d53bfc5252ca8a930478cb2ab471c381124 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef SQLITEREINDEX_H
#define SQLITEREINDEX_H

#include "sqlitequery.h"

#include <QString>

class API_EXPORT SqliteReindex : public SqliteQuery
{
    public:
        SqliteReindex();
        SqliteReindex(const SqliteReindex& other);
        SqliteReindex(const QString& name1, const QString& name2);

        SqliteStatement* clone();

        QString database = QString();
        QString table = QString();

    protected:
        QStringList getTablesInStatement();
        QStringList getDatabasesInStatement();
        TokenList getTableTokensInStatement();
        TokenList getDatabaseTokensInStatement();
        QList<SqliteStatement::FullObject> getFullObjectsInStatement();
        TokenList rebuildTokensFromContents();
};

typedef QSharedPointer<SqliteReindex> SqliteReindexPtr;

#endif // SQLITEREINDEX_H