Cocobox

SQL and connections

Connect a database, inspect its schema and review writes before they run.

Add a connection

  1. In the sidebar, open Connections and click +. Pick a database type. Enter the connection details or choose the local database file.

    The Add connection form
  2. Mark the connection Read-only if you only need to query it. Test the connection, then add it. Pick the connection in the SQL tab (⌘2).

Browse and query

  1. Open a table to browse its rows and inspect its columns. In the SQL editor, enter a statement and press ⌘↵ to run it.

    SQL editor above a table of query results
  2. For a write, read the statement and any affected row count on the approval card before deciding. Read-only connections reject writes.

    SQL write approval with the exact statement and the affected row count
  3. Open Audit in the right panel to see past write decisions. See Database approvals for dry runs and undo.

Give tabs their own database copies

  1. Open the space settings and enable the per agent switch beside an eligible database.

    A per-agent database copy switch in the space settings
  2. Open a new agent tab in that space. Check the database chip or the connection selector for the tab’s copy before running a write.

    A database copy chip on the agent tab
  3. When closing the tab, read the choices for its copy. Choose whether to keep it with the archive or drop it before closing.

How connections behave