Trellis

Data Relationships

Follow the query to the dependency.

Trace supported relationships between SQL definitions and database objects, and find the code and documents around them. Inspect the evidence before changing a table, view or procedure.

Follow the relationships

One table. More than one dependency.

Choose a question to highlight its path and inspect the supporting SQL.

Synthetic example mapped to supported relationship concepts. This diagram does not execute queries or represent a live Trellis session.

Two definitions in this example mention status

Bring the related definitions into the review.

In these excerpts, the view filters on status and the procedure updates it. Both are useful evidence when reviewing a change to that column.

sales.orders.status → inspect the related view and procedure

This illustrates an investigation using table relationships and visible column references. It is not a guarantee of complete column-level impact coverage or dynamic SQL resolution.

Illustrative SQL definition

-- View: reporting.open_orders
SELECT o.id, o.customer_id, o.total
FROM sales.orders AS o
WHERE o.status = 'open';

-- Procedure: sales.close_order
UPDATE sales.orders
SET status = 'closed'
WHERE id = order_id;
Inspect the application excerpt
// Application entry points in this example
loadOpenOrders(db);
closeOrder(db, orderId);

What enters the graph

See the structure. Follow the connections.

Objects & columns

Schemas, tables and the fields they contain, from a connected database or the SQL files in your repository.

Reads, writes & calls

How the views, procedures and triggers in a connected database use those objects.

Your code is in the same graph. Illustrative relationships; coverage depends on the source and supported syntax.

Two ways to start

Different sources. Connected context.

Database catalog

PostgreSQL, Microsoft SQL Server, and MySQL

Objects, definitions, and the read and write relationships between them.

Explore the SQL connector

SQL in your repository

Tables, views and procedures defined next to your application code.

Explore Code Intelligence

Trellis

Your connected graph

Objects, definitions and relationships

What gets imported?

Catalog connections import selected schemas and supported definitions; read and write relationships come from the views, procedures and triggers in that catalog. Repository imports add the tables, views and procedures defined in supported SQL files alongside your code, and link each function in that code to the ones its SQL uses. They add no read and write relationships between the definitions themselves. Coverage depends on dialect, statement shape and target resolution. Catalog import reads schema definitions only, not the rows in your tables.

Turn connections into a better review

Bring the affected workflow into the conversation.

Use the graph to find the definitions worth examining, then inspect the original SQL, code and supporting knowledge. Ask the next question with that context available.

Try it on your next change.

Bring a representative schema, repository and question. Explore the relationships that would make that review easier.