The left panel is for Database Navigation, and the right panel hosts Query Tabs.
Database Navigation
To create a new database:
Database Operations
- New query
For SQL databases, you can select SQL or TypeScript, or specify the default in the database's UI configuration.
- Open query
- Refresh database type
Accurate database types are used to provide a better TypeScript IntelliSense experience.
To minimize database load, DBNova does not auto-refresh database types. Please refresh manually if changes occur.
- Test Connection
- Modify database configuration
Click a database name to toggle the table list. Hold Ctrl and click a database name to refresh when collapsed.
Table Operations
- Browse
Open a new tab and view all records.
- New Record
- Load
Import data from a file (Excel, JSON or JSONL).
- Structure Information
Show the structure information.
- Soft drop
Rename to
soft_dropped_${table_name}and hide by default.- Drop
Permanently delete the table. (Disabled in production environments).
Query Tab
The code editor is implemented based on Monaco Editor. When editing SQL, there is no auto-completion functionality. When editing TypeScript, basic auto-completion is available, but it is not as comprehensive as in VSCode. I am considering leveraging the typescript-go project to customize the lsp once it is completed, which may enable more robust auto-completion capabilities.
The table supports vertical virtual scrolling.
For horizontal scrolling: Shift + mouse wheel is the default browser behavior. Additionally, hovering the mouse over the table header or the bottom scrollbar will also trigger horizontal scrolling.
Toolbar
- Start Transaction
The transaction scope is the entire tab, All database operations will be executed within this transaction.
If you want to ensure that multiple statements are executed within the same session, you must start a transaction.
- Execute
If there is only one statement in the current file, it will be executed directly.
If there are multiple statements, you can select one or more to execute.
TIP
Running multiple statements simultaneously will trigger 'Exec' mode, which does not return any result sets for each query.
- Re-Execute
TIP
Hold
Ctrlto re-enter parameters before execution.- Show Args
View current execution parameters.
- Time Status
Show execution completion time and duration.
- More
If there are more rows, this indicator will be displayed.
- Dump
Export results to Excel/JSON.
- Collapse Table
- Commit Transaction
- Rollback Transaction
Cell Operations
- Display
For large data values, content is truncated. Click it to show the full content in a popup.
- Edit
Modify the cell value. Feats CellEdit
- Copy
Copy cell value.
- Copy Row
Copy the entire row.