Tags: danvergara/dblab
Tags
feat: execute query at cursor only (#330) * Feat: Execute query at cursor only * Fix tests * refactor(editor): make the queryAtCursor function returns the line the cursor is on * fix(editor): check if the query is empty --------- Co-authored-by: Daniel Omar Vergara Pérez <daniel.omar.vergara@gmail.com>
feat: add read only mode (#323) * feat(cmd): add a readonly bool flag to enable the read-only connection feature * feat(connection): add a ReadOnly field to the Options struct * feat(client): add a readOnly bool flag to enable the read only mode and execute queries that force the connection to enter into read only mode * feat(connection): handler sql server differently by adding a parameter to the connection string (dsn) * test(client): add a test case to validate the the read-only in the client * add support for read-only mode in the config file * docs: update doc files with the read-only feature * test(client): fix the client test to validate the read only query
feat: query history menu (#319) * feat(bubbletui): add the query history model * some fixes * feat: full functionality complete * chore(bubbletui): revert the loaded query history to show it in descending order based on the timestamp * docs(history): add doc comments * feat(editor): add ctrl+d keybinding to clear the editor * test(history): add test to validate the history package content * feat(editore): add vertical motions inside the editor for normal mode * fix(history): format test file * docs: update the readme file and the docs website * refactor(client): call ExecContext for data manipulation queries * feat(bubbletui): show execution time and rows affected * docs: update screenshots
feat: add multi queries (#315) * feat(client): add method to run multiple queries concurrently * feat(bubbletui): run the concurrent query method asynchronously as tea.Cmd * feat(editor): split the queries by ; from the editor and pass to the executeQueryMsg message * feat(resultset): show the queries and potential errors in the resulset * style(bubbletui): remove unused variables * docs: add doc comments * test(client): add test to validate asyncquery * docs: update the documentation with the multi queries feature * docs: add screenshots to the documentation * fix(bubbletuie): clears cancelQuery whenever a query result comes back * docs: update the docs to let the user know ctrl+c always quits the app
feat: add keyring (#313) * chore(gomod): install deps * refactor: refactor keymaps handling * add profiles package * chore: add example config file * feat: add save-as feature flag that enables the user to store the database connection profile and the password in the os keyring * feat: add a connect command to spin up a form to display the profiles * feat(connect): make the form show the connection options and connect to the database * chore(makefile): add connect target to the makefile On branch add-keyring * feat(profiles): add the ability to remove profiles * feat(connect): full implementation of the connect form using bubbles list * feat: add ssh password handling in the os keyring * docs(connect): add doc comments to the connect model * chore(connect): improve the help menu * style(profiles): rename a err variable * remove example file * docs: update docs on how to use the keyring feature * chore: add assets * style: fix a doc comment
feat: add full support for views listing and definitions (#312) * feat(client): add fetch views methods to postgres and oracle * feat(bubbletui): add emoji for view * chore(client): call the fetchViews method * feat(client): add schema handling to the sql server * add full support for views listing and defintions across all database integrations * chore(makefile): add make target commands to run dblab agains test databases * docs(client): add doc comments
chore: refresh catalog on ddl query execution (#311) * feat(bubbletui): refresh the catalog when a ddl query is executed * refactor(sidebar): remove the expand all method call * refactor(bubbletui): add an error message on the resultset view whenever the catalog loading fails
PreviousNext