The editor now has context aware completions

This commit is contained in:
eelke 2026-10-22 17:52:37 +02:00
parent 1a1bbd0838
commit 960967c8a6
18 changed files with 1984 additions and 0 deletions

View file

@ -25,6 +25,7 @@ class QTableView;
class QTabWidget;
class SqlSyntaxHighlighter;
class SqlCompletionProvider;
class ExplainRoot;
class QueryExplainModel;
class PgTypeContainer;
@ -80,6 +81,9 @@ private:
std::shared_ptr<PgDatabaseCatalog> m_catalog;
std::shared_ptr<SqlCompletionProvider> m_completionProvider; ///< built on first use, reset when the catalog is refreshed
void setupCompletion();
ASyncDBConnection m_dbConnection;
std::unique_ptr<QueryExplainModel> explainModel;