You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(client): adapt the client to handler database-less connections
* feat(connection): add the change to make the database param non-mandatory
* feat(client): update the database implementations to be complaint with databaseQuerier interface
* feat(tui): refactor the tui to handler connection without the database
* fix(pkg): address ccoVeille comments Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
* docs(readme): add instructions on how to use new tree view
Copy file name to clipboardExpand all lines: README.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,7 @@ Available Commands:
93
93
Flags:
94
94
--cfg-name string Database config name section
95
95
--config Get the connection data from a config file (default locations are: current directory, $HOME/.dblab.yaml or $XDG_CONFIG_HOME/.dblab.yaml)
96
-
--db string Database name
96
+
--db string Database name (optional)
97
97
--driver string Database driver
98
98
--encrypt string [strict|disable|false|true] data sent between client and server is encrypted or not
99
99
-h, --help help for dblab
@@ -264,8 +264,14 @@ Now, there's a menu to navigate between hidden views by just clicking on the des
264
264
<img src="screenshots/constraints-view.png" />
265
265
<img src="screenshots/indexes-view.png" />
266
266
267
-
As you may have noticed, navigation has already been added, so every time you query the content of a listed table, the result set is going to be paginated. This allows to the user dealing with large tables, optimizing resources.
268
-
Just hit the `BACK` and `NEXT` buttons to go back and forth.
267
+
~~As you may have noticed, navigation has already been added, so every time you query the content of a listed table, the result set is going to be paginated. This allows to the user dealing with large tables, optimizing resources.
268
+
Just hit the `BACK` and `NEXT` buttons to go back and forth.~~
269
+
270
+
The navigation buttons were removed since they are too slow to really navigate the content of a table. The user is better off typing a `SELECT` statement with proper `OFFSET` and `LIMIT`.
271
+
272
+
The `--db` flag is now optional (except for Oracle), meaning that the user will be able to see the list of databases they have access to. The regular list of tables will be replaced with a tree structure showing a list of databases and their respective list of tables, branching off each database. Due to the nature of the vast majority of DBMSs that don't allow cross-database queries, dblab has to open an independent connection for each database. The side effect of this decision, is that the user has to press `Enter` on the specific database of interest. An indicator showing the current active database will appear at the bottom-right of the screen. To change the focus, just hit enter on another database. Once a database is selected, the usual behavior of inspecting tables remains the same.
0 commit comments