aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/coreSQLiteStudio/parser/ast/sqlitedropindex.h
blob: 4f4364a207f58a0f6a9623d4fce66cc93b414cfa (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
#ifndef SQLITEDROPINDEX_H
#define SQLITEDROPINDEX_H

#include "sqlitequery.h"
#include <QString>

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

        SqliteStatement* clone();

        bool ifExistsKw = false;
        QString database = QString();
        QString index = QString();

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

typedef QSharedPointer<SqliteDropIndex> SqliteDropIndexPtr;

#endif // SQLITEDROPINDEX_H