aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/coreSQLiteStudio/parser/ast/sqliteattach.h
blob: 55151a51ad8a0204f9618010b1c8cbefb603e2ae (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
#ifndef SQLITEATTACHDATABASE_H
#define SQLITEATTACHDATABASE_H

#include "sqlitequery.h"

class SqliteExpr;

class API_EXPORT SqliteAttach : public SqliteQuery
{
    public:
        SqliteAttach();
        SqliteAttach(const SqliteAttach& other);
        SqliteAttach(bool dbKw, SqliteExpr* url, SqliteExpr* name, SqliteExpr* key);
        ~SqliteAttach();
        SqliteStatement* clone();

        bool databaseKw = false;
        SqliteExpr* databaseUrl = nullptr;
        SqliteExpr* name = nullptr;
        SqliteExpr* key = nullptr;

    protected:
        TokenList rebuildTokensFromContents();
};

typedef QSharedPointer<SqliteAttach> SqliteAttachPtr;

#endif // SQLITEATTACHDATABASE_H