Documentation+SQLStudio: Add manual page for SQL Studio
This commit is contained in:
parent
ec45ffadc2
commit
a79896bb44
Notes:
sideshowbarker
2024-07-19 17:05:49 +09:00
Author: https://github.com/dykatz Commit: https://github.com/SerenityOS/serenity/commit/a79896bb441 Pull-request: https://github.com/SerenityOS/serenity/pull/13582 Reviewed-by: https://github.com/bgianfo Reviewed-by: https://github.com/kleinesfilmroellchen Reviewed-by: https://github.com/linusg
2 changed files with 31 additions and 0 deletions
28
Base/usr/share/man/man1/SQLStudio.md
Normal file
28
Base/usr/share/man/man1/SQLStudio.md
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
## Name
|
||||||
|
|
||||||
|
 SQL Studio - SerenityOS SQL Manager
|
||||||
|
|
||||||
|
[Open](file:///bin/SQLStudio)
|
||||||
|
|
||||||
|
## Synopsis
|
||||||
|
|
||||||
|
```**sh
|
||||||
|
$ SQLStudio [script.sql | database.db]
|
||||||
|
```
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
SQL Studio is a graphical SQL manager program that allows the user to create and edit
|
||||||
|
SQL scripts.
|
||||||
|
|
||||||
|
## Arguments
|
||||||
|
|
||||||
|
* `script.sql`: SQL script to open, edit or run
|
||||||
|
* `database.db`: SQL database to open and run scripts against
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ SQLStudio
|
||||||
|
$ SQLStudio /home/anon/Documents/sql/insert_values.sql
|
||||||
|
```
|
|
@ -205,6 +205,9 @@ void MainWidget::initialize_menu(GUI::Window* window)
|
||||||
edit_menu.add_action(*m_redo_action);
|
edit_menu.add_action(*m_redo_action);
|
||||||
|
|
||||||
auto& help_menu = window->add_menu("&Help");
|
auto& help_menu = window->add_menu("&Help");
|
||||||
|
help_menu.add_action(GUI::CommonActions::make_help_action([](auto&) {
|
||||||
|
Desktop::Launcher::open(URL::create_with_file_protocol("/usr/share/man/man1/SQLStudio.md"), "/bin/Help");
|
||||||
|
}));
|
||||||
help_menu.add_action(GUI::CommonActions::make_about_action("SQL Studio", GUI::Icon::default_icon("app-sql-studio"), window));
|
help_menu.add_action(GUI::CommonActions::make_about_action("SQL Studio", GUI::Icon::default_icon("app-sql-studio"), window));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue