aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/coreSQLiteStudio/completionhelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'SQLiteStudio3/coreSQLiteStudio/completionhelper.h')
-rw-r--r--SQLiteStudio3/coreSQLiteStudio/completionhelper.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/SQLiteStudio3/coreSQLiteStudio/completionhelper.h b/SQLiteStudio3/coreSQLiteStudio/completionhelper.h
index 5c656c2..8df1912 100644
--- a/SQLiteStudio3/coreSQLiteStudio/completionhelper.h
+++ b/SQLiteStudio3/coreSQLiteStudio/completionhelper.h
@@ -4,7 +4,6 @@
#include "expectedtoken.h"
#include "schemaresolver.h"
#include "selectresolver.h"
-#include "dialect.h"
#include "completioncomparer.h"
#include "parser/ast/sqliteselect.h"
#include "parser/token.h"
@@ -68,6 +67,9 @@ class API_EXPORT CompletionHelper : public QObject
EXPR
};
+ static void initFunctions(Db* db);
+ static void initPragmas(Db* db);
+
QList<ExpectedTokenPtr> getExpectedTokens(TokenPtr token);
ExpectedTokenPtr getExpectedToken(ExpectedToken::Type type);
ExpectedTokenPtr getExpectedToken(ExpectedToken::Type type, const QString& value);
@@ -103,7 +105,7 @@ class API_EXPORT CompletionHelper : public QObject
QList<ExpectedTokenPtr> getColumns(const QString& prefixDb, const QString& prefixTable);
QList<ExpectedTokenPtr> getFavoredColumns(const QList<ExpectedTokenPtr>& resultsSoFar);
- QList<ExpectedTokenPtr> getPragmas(Dialect dialect);
+ QList<ExpectedTokenPtr> getPragmas();
QList<ExpectedTokenPtr> getFunctions(Db* db);
QList<ExpectedTokenPtr> getCollations();
TokenPtr getPreviousDbOrTable(const TokenList& parsedTokens);