Skip to content

Quick Start

This guide walks you through launching SoftDB, creating a connection, and running your first query. The whole thing takes about 5 minutes.

Make sure SoftDB is installed. If not, see the Installation guide.

You’ll also need a database to connect to. Any of these work:

  • A local PostgreSQL or MySQL server
  • A SQLite file on your machine
  • A remote database (with credentials)
  • A MongoDB instance
  1. Launch SoftDB.

    The app opens to the Connection Hub — your home screen for managing saved connections.

    SoftDB Connection Hub

  2. Click “New Connection”.

    A connection form slides open. Fill in the details for your database:

    For MySQL or MariaDB:

    • Host: localhost
    • Port: 3306
    • Username: your MySQL username
    • Password: your MySQL password
    • Database: the database name (optional — you can browse all databases after connecting)

    For PostgreSQL:

    • Host: localhost
    • Port: 5432
    • Username: postgres (or your username)
    • Password: your password
    • Database: postgres (or leave blank to browse all)

    For SQLite:

    • Click Browse and select your .db or .sqlite file
    • No username or password needed

    For MongoDB:

    • Host: localhost
    • Port: 27017
    • Leave username/password blank for local instances without auth

    For Redis:

    • Host: localhost
    • Port: 6379
    • Password: only if your Redis instance requires one
  3. Test the connection.

    Click Test Connection before saving. SoftDB will attempt to connect and report back. If it fails, double-check your host, port, and credentials.

  4. Save and connect.

    Click Save. SoftDB connects immediately and opens the workspace for that database.

Once connected, the left sidebar shows your database structure.

SoftDB Table Explorer

For databases that support multi-DB browsing (PostgreSQL, MySQL, MariaDB, MongoDB, Redshift, Redis), you’ll see a 3-level tree:

Connection
└── database_name
├── table_one
├── table_two
└── table_three

Click any table name to open it in the data grid. You’ll see the rows, column types, and can scroll through the data. The grid is virtualized, so it handles large tables without freezing.

  1. Open the SQL Editor tab.

    Click the SQL Editor tab in the main workspace area. A Monaco editor opens — the same editor that powers VS Code.

  2. Write a query.

    Type a query in the editor:

    SELECT * FROM users LIMIT 10;

    As you type, the editor autocompletes table and column names from your live schema.

  3. Execute it.

    Press Ctrl+E on Windows/Linux or Cmd+E on macOS. The results appear in the panel below.

    SQL Editor with query results

  4. Try a few more queries.

    -- Count rows in a table
    SELECT COUNT(*) FROM orders;
    -- Find recent records
    SELECT * FROM events
    WHERE created_at > NOW() - INTERVAL '7 days'
    ORDER BY created_at DESC;
    -- Join two tables
    SELECT u.name, COUNT(o.id) AS order_count
    FROM users u
    LEFT JOIN orders o ON o.user_id = u.id
    GROUP BY u.id, u.name
    ORDER BY order_count DESC;

SoftDB includes a built-in AI chat panel that knows your database schema.

  1. Open the AI panel.

    Click the AI icon in the toolbar (or press the keyboard shortcut). The chat panel opens on the right side.

    AI Chat Panel

  2. Ask a question about your data.

    The AI automatically receives your schema — tables, columns, and types — as context. Try asking:

    “Show me all tables with their row counts”

    “Write a query to find users who haven’t logged in for 30 days”

    “What indexes does the orders table have?”

  3. Copy the generated SQL.

    The AI responds with SQL you can copy directly into the editor. Click the copy button on any code block in the chat.

You don’t need to write UPDATE statements for simple edits. Double-click any cell in the data grid to edit it inline. Changes are staged until you click Save Changes, which runs a parameterized UPDATE behind the scenes.

SQL Editor

Multi-tab queries, keyboard shortcuts, and execution plan analysis.

Data Grid

Inline editing, filtering, sorting, and pagination.

AI Assistant

Configure your OpenAI API key and choose your model.

Connection Management

SSH tunnels, SSL, and connection pooling options.