Ask questions of your PostgreSQL data

Foundry reads the tables you choose from a PostgreSQL database, Neon, Supabase and PlanetScale included, and connects them with the rest of your company's data in one ontology. Answers cite the rows they came from.

What Foundry reads from PostgreSQL

The tables you choose from one schema, or every table in it, read with a read-only role.

Questions you can ask

  • “Which accounts signed up last quarter but never created a project?”
  • “Which users in our app database have no matching Stripe customer?”
  • “How many orders did each region place this month?”
  • “Which accounts on the enterprise plan have the most active users?”

From tables to a graph

How PostgreSQL becomes part of your graph

Your tables become types such as Account, User or Order. Foreign keys and shared IDs become links, and the same customer in PostgreSQL and in a tool such as Stripe is matched on the keys both hold.

  1. Sync. Foundry keeps its copy of your data up to date, syncing more often on paid plans.
  2. Draft. The ontology agent drafts types, links and rules from your data and your goal. You review and edit it.
  3. Load. A load writes it into HelixDB, and every value keeps its source: a table row, or a quote in a document.
  4. Ask. The Analyst answers questions with the queries it ran and a source for every claim, and on Helix Cloud your agents can query it through the Helix MCP.

Setup

Connect PostgreSQL

  1. Create a read-only role: CREATE ROLE foundry_readonly LOGIN, then GRANT CONNECT on the database, USAGE on the schema and SELECT on its tables.
  2. In Foundry, open Data, click Add data and choose PostgreSQL.
  3. Enter the host, port, database, user, password and schema, and keep TLS on.
  4. On Helix Cloud, allow Helix's outbound address to reach the database; the setup guide lists it.
  5. Test the connection, pick the tables to sync, and connect.