1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:07:36 +00:00

SQLStudio: Execute statements in SQL server

Make the link between SQLStudio and the SQLServer so that statements
written in the editor window are executed by LibSQL when the 'Run'
button is clicked.
This commit is contained in:
martinfalisse 2022-06-05 17:58:35 +02:00 committed by Linus Groh
parent 4461dad0f3
commit 061525282f
2 changed files with 91 additions and 1 deletions

View file

@ -9,6 +9,7 @@
#include <AK/LexicalPath.h>
#include <AK/Vector.h>
#include <LibGUI/Widget.h>
#include <LibSQL/SQLClient.h>
namespace SQLStudio {
@ -54,6 +55,14 @@ private:
RefPtr<GUI::Statusbar> m_statusbar;
RefPtr<GUI::GroupBox> m_query_results_widget;
RefPtr<GUI::TableView> m_query_results_table_view;
RefPtr<SQL::SQLClient> m_sql_client;
String read_next_sql_statement_of_editor();
Optional<String> read_next_line_of_editor();
size_t m_current_line_for_parsing { 0 };
int m_editor_line_level { 0 };
int m_connection_id { 0 };
};
}