mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:47:35 +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:
parent
4461dad0f3
commit
061525282f
2 changed files with 91 additions and 1 deletions
|
@ -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 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue