Xata is a serverless data platform on PostgreSQL where every branch is its own isolated schema environment. DbSchema connects to any branch's PostgreSQL-compatible endpoint and reverse-engineers it into a diagram you can query, inspect, and share.
Trusted by teams at
Xata's workflow forks a branch per feature, gives it an isolated PostgreSQL environment, and merges schema changes back like code. Convenient — until review time, when "what exactly does this branch's schema look like now?" has no visual answer.
Point DbSchema at the branch endpoint and the answer is a diagram: tables, columns, and relationships as that branch defines them.
Because under the serverless surface, that is exactly what they are.
Each Xata branch exposes its own PostgreSQL-compatible URL; DbSchema reverse-engineers whichever one you connect to, using the bundled PostgreSQL driver.
The endpoint accepts standard SQL — joins, aggregations, window functions, CTEs — so testing a query against a feature branch works like on any PostgreSQL database.
Select tables, columns, filters, and joins visually and read the resulting SQL — handy when exploring a branch someone else created.
Pair the two workflows: keep the DbSchema model file in the same repository as the feature branch, diff schema changes in the pull request, and compare branch schemas against the model to see exactly what a merge will bring to main.
Copy the branch's direct PostgreSQL connection string from the Xata dashboard under
Settings > Connection strings — it looks like
jdbc:postgresql://us-east-1.sql.xata.sh/mydb:main?sslmode=require, with database
and branch joined by a colon in the path. Choose PostgreSQL as the database type; the
org.postgresql.Driver is bundled with DbSchema.
SSL is mandatory, so keep sslmode=require. Authenticate with an API key from the
dashboard as the password, and the username the connection string names. Since every branch has
a distinct endpoint, save one profile per branch you work on. More on the
Xata JDBC driver page.
No signup, no cost — and the Architect trial runs 15 days from the same download.
Teams working with Xata often use these engines too. Explore dedicated guides and JDBC setup for each.