Use this flow when you already have PostgreSQL schema SQL and want Synthbrew to turn it into a schema draft without relying on AI.Documentation Index
Fetch the complete documentation index at: https://synthbrew.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
What SQL input works best
The SQL importer is designed for PostgreSQL schema DDL, especially:pg_dump --schema-onlyexports- Schema export/download files from hosted PostgreSQL providers
- Hand-written PostgreSQL
CREATE TABLE,ALTER TABLE,CREATE TYPE ... AS ENUM, andCREATE INDEXstatements
Export schema SQL with pg_dump
If you already have a PostgreSQL connection string, the most reliable option is a schema-only export:
Other ways to get a SQL file
- Many hosted PostgreSQL providers let you export or download schema SQL from their dashboard.
- If you manage migrations in your app repo, you can often copy the final migration SQL or concatenate the schema migrations into one file.
- If you already have a local
.sqlschema dump, you can upload it directly in Synthbrew.
Import the SQL in Synthbrew
- Open Schemas in your project.
- Choose Import from SQL file.
- Upload one
.sqlfile or paste PostgreSQL schema SQL into the editor. - Add a schema name and optional description.
- Load the preview, review warnings, and choose the schemas or tables you want.
- Open the draft in the editor and make any final adjustments before saving the schema.
What gets imported
Synthbrew aims to map the same kinds of things it can infer from the connection-string import flow:- Tables
- Columns and common PostgreSQL scalar types
- Enums created with
CREATE TYPE ... AS ENUM - Primary keys and unique constraints
- Foreign keys that fit the current Synthbrew schema model
- Simple indexes
What gets ignored or downgraded to warnings
Some PostgreSQL objects are not represented directly in the current Synthbrew schema model. The importer keeps going, but shows warnings for items like:- Views and materialized views
- Comments
- Grants and privilege statements
- Session/config statements
- Functions, triggers, and policies
- Extensions
- Sequences and other objects outside the current schema contract
- Unsupported or lossy constraint/index shapes
Troubleshooting
SQL is required
The SQL textarea is empty. Upload a .sql file or paste PostgreSQL schema SQL before loading the preview.
No importable tables found in SQL
The file likely contains comments, grants, or other statements but no supported CREATE TABLE definitions. Re-export with a schema-focused SQL dump or check that the file includes table definitions.