Visual Table Designer
The Visual Table Designer allows you to create and modify database schemas without writing raw SQL.
Accessing the Designer
- Open a Connection.
- In the sidebar, hover over a Schema.
- Click the + (Plus) icon to create a table, or right-click an existing table and select Design.
Designing a Table
The interface provides a spreadsheet-like view for defining columns:
- Name: Column name (e.g.,
id,email). - Type: Data type (e.g.,
UUID,VARCHAR,INTEGER). - Length/Precision: Optional constraints.
- Nullable: Check if the column can be empty.
- Primary Key: Mark unique identifiers.
- Unique: Enforce unique values.
- Foreign Key: Link to other tables.
AI Assistant
Click the "Magic Wand" icon to use the AI Assistant:
"Create a users table with email, password hash, and active status."
The AI will generate the appropriate column definitions automatically.
Importing Data
- Click Import in the designer toolbar.
- Upload a CSV or JSON file.
- Map file columns to database columns.
- Preview data and click Import.
Applying Changes
BosDB uses a "Pending Changes" system:
- Make your edits in the designer.
- Click Review Changes.
- See the generated SQL (DDL).
- Click Apply to execute schema changes.