Follow your data from row to row

Relationships and foreign keys

Open the row a foreign key points to, see every table that points back, and write JOINs without looking up column names.

Foreign keys describe how your data connects. Querly turns them into navigation, so you can follow an order to its customer and back to all of their payments without writing a query.

Open the referenced row

Foreign-key cells show a small chevron. Click it and Querly opens the referenced table, filtered to that exact row. You can also right-click a cell and choose Open Referenced Row, or use the same button in the row details panel.

Hover a column header with a foreign-key mark to see what it references, for example References customer(customer_id).

Select a row and press Space to open its details. The Related tables section lists both directions:

Click an entry to open that table already filtered to the matching rows.

See who references a table

In a table's Structure view, the foreign-key list shows outgoing keys, and a separate list shows other tables that reference this table. Drop a foreign key or add a new one from the same view.

JOINs written for you

Relationships without constraints

Many applications never create foreign-key constraints in the database. When Querly recognises a Laravel database, it infers relationships from naming conventions such as user_id → users.id, and resolves polymorphic columns such as commentable_type. Those columns get the same chevron and the same navigation. See Laravel projects.

No guesses on other databases

Inferred relationships only appear on databases Querly has identified as Laravel. Everywhere else, navigation uses real foreign keys only.

↑↓ move↩ open