Migrations
Properly diffing migrations is not supported yet, but it's in the pipeline.
In the meantime, you have two options:
Embar CLI (work in progress)
This uses which uses an LLM (and your ANTHROPIC_API_KEY) to generate vibe-diffs.
You should inspect these before running them.
You can see a working example at example/.
First create a config file embar.yml in your app root:
dialect: postgresql
db_url: postgresql://user:password@localhost:5432/db
schema_path: app.schema
migrations_dir: migrations # optional
Then to generate migrations, run the following and follow the prompts:
embar migrate
Or to push directly to your db, run the following. You will be prompted before each change.
embar push
Or use an external schema management tool
Use the migrate() method shown in the quickstart to dump the current DDL to a .sql file.
Then use a schema management tool to manage updates. Some options are: