Documentation Index
Fetch the complete documentation index at: https://mintlify.com/felixdotgo/querybox/llms.txt
Use this file to discover all available pages before exploring further.
Browsing Database Objects
QueryBox’s connection tree provides a visual, hierarchical view of your database structure. Browse databases, schemas, tables, columns, and other objects without writing queries.Understanding the Connection Tree
Tree Structure
The connection tree displays a hierarchy that adapts to your database type:- PostgreSQL
- MySQL
- SQLite
- Redis
- ArangoDB
Node Icons
Each node type has a distinct icon for quick identification:- Server - Connection root
- Database - Individual database
- Schema - Namespace or schema
- Table - Data table
- View - Virtual table
- Column - Table field
- Collection - Document collection
- Key - Key-value pair
- Action - Executable operation (appears as a button)
When a query is running for a node, the icon changes to a loading spinner for immediate feedback.
Loading the Tree
Select a Connection
Click a connection name in the Connections panel. If the tree hasn’t been loaded yet, QueryBox automatically fetches it.
Wait for Tree Population
A loading spinner appears on the connection icon while QueryBox:
- Retrieves credentials from the OS keyring
- Calls the plugin’s
connection-treecommand - Parses and displays the hierarchy
Interacting with Nodes
Single Click Behavior
- Connection Root - Loads (or refreshes) the tree structure
- Container Nodes (databases, schemas) - Expands or collapses children
- Data Nodes (tables, views, collections) - Executes a default
SELECTquery and opens a result tab - Action Nodes - Triggers the action immediately (e.g., “New Database”)
Double Click Behavior
Double-clicking a connection root opens the Connections window, allowing you to edit or delete the connection.Hover Actions
Many nodes display action buttons when you hover over them:- Select - Query all rows/documents (adds
LIMIT 100automatically) - Describe - Show table structure (columns, types, constraints)
- Drop - Delete the object (requires confirmation)
- Create - Add a new child object (e.g., “New Table” under a database)
Tree Actions
Create Actions
Plugins may provide “New Database”, “New Table”, or similar actions. These appear as button-styled nodes at the top of their parent’s children.Fill the Form
A modal dialog appears with fields for the new object:
- Database name
- Optional parameters (encoding, collation, etc.)
Select Actions
Clicking a table or collection node runs aSELECT query:
- SQL Tables -
SELECT * FROM table LIMIT 100 - Collections - Fetch first 100 documents
- Keys - Retrieve key value
Describe Actions
Use “Describe” or “Show Columns” to inspect table structure:- Column Names - Field identifiers
- Data Types -
VARCHAR,INT,TEXT, etc. - Constraints -
NOT NULL,PRIMARY KEY,UNIQUE - Defaults - Default values for new rows
Drop Actions
Deleting database objects requires explicit confirmation:Review the Query
A dialog displays the exact SQL/command that will be executed:This cannot be undone.
Searching the Tree
Connection Search
Use the search bar at the top of the Connections panel to filter connections by name. Only matching connections remain visible.The search filters connection roots only, not individual tables or databases. To find a specific table, expand the connection and browse manually.
Expanding All Nodes
Click the disclosure triangle next to a connection to expand its entire tree. Subsequent clicks toggle expansion on/off.Refreshing the Tree
Manual Refresh
To reload a connection’s tree structure:Automatic Refresh
QueryBox automatically refreshes the tree after successful create or drop actions. You don’t need to manually refresh after running:CREATE DATABASECREATE TABLEDROP TABLE- Other structural changes via tree actions
Active Connection Indicator
The currently active connection displays:- A green dot badge on its server icon
- Highlighted background in the tree
Node Context
When you run a query from a tree node, QueryBox captures the full context:- Connection - The database server
- Database - The selected database (from the node path)
- Node Type - Table, view, collection, etc.
- Action - The query or command
- Refresh buttons (re-run the same query)
- Explain buttons (analyze query performance)
- Breadcrumb navigation (show where the query came from)
Tips
- Keyboard Navigation: Use arrow keys to navigate the tree (up/down to move, right/left to expand/collapse)
- Bulk Operations: To work with multiple tables, open each in a separate tab and compare results
- Large Schemas: If your database has hundreds of tables, use the connection search to filter the tree
- Plugin Differences: Not all plugins support all actions (e.g., Redis doesn’t have “Describe”); check the plugin documentation
- Cached Trees: Trees remain cached until you refresh or restart QueryBox; schema changes won’t appear until you refresh