aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/coreSQLiteStudio/parser/ast/sqlitelimit.h
blob: 284cf49af93826b38ae4352bf9d1887370c5876d (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 SQLITELIMIT_H
#define SQLITELIMIT_H

#include "sqlitestatement.h"

class SqliteExpr;

class API_EXPORT SqliteLimit : public SqliteStatement
{
    public:
        SqliteLimit();
        SqliteLimit(const SqliteLimit& other);
        explicit SqliteLimit(SqliteExpr* expr);
        SqliteLimit(SqliteExpr* expr1, SqliteExpr* expr2, bool offsetKeyword);
        explicit SqliteLimit(const QVariant& positiveInt);
        SqliteLimit(const QVariant& positiveInt1, const QVariant& positiveInt2);
        ~SqliteLimit();

        SqliteStatement* clone();

        SqliteExpr* limit = nullptr;
        SqliteExpr* offset = nullptr;
        bool offsetKw = false;

    protected:
        TokenList rebuildTokensFromContents();
};

typedef QSharedPointer<SqliteLimit> SqliteLimitPtr;

#endif // SQLITELIMIT_H