Relationships
Relationships are drawn from foreign keys MoleDB has already loaded for the connection. Opening the diagram does not run another query.
The dialog is titled Relationships, with the connection name. Each arrow points at the referenced table. Tables that are not part of a foreign key are left out. You can limit the diagram to one schema, and filter by table name. Show in Objects selects the table in the tree. Edit data opens it. Enter does the same when a table is selected.
When more than 48 related tables would be drawn, MoleDB lists the foreign keys instead of drawing them. The list shows up to 48 keys until a filter narrows it. The legend says the diagram stops at 48.
If the tree has no tables, or none of them reference another table, the dialog says so. Add a data source first and Refresh the connection to load the schema are the reasons the command stays disabled.
Related rows from a cell
A foreign-key cell can show ↗. That opens the related rows.
- Toward the referenced table, the label is Open, plus the schema and table.
- Toward rows that point at this one, the label is Show related, plus the schema and table.
A null key is not a jump. A composite key uses every column in the relationship. The rows that open carry Filtered by chips for those values. See Filter rows.