Documentation
What databee does, where it stops, and how this documentation is organised.
databee is a toolkit for database design. The schema lives in a project folder as plain JSON files, one per table, so git can diff it and a reviewer can read it. From that model databee validates and lints, draws diagrams, writes DDL, code and ALTER plans, and plans migrations between database systems. PostgreSQL is the reference system; the other adapters are described, with their limits, in the capability matrix.
databee is pre-1.0. The command line, the MCP server and Studio call the same operations, so what you learn in one carries over to the others.
Start here
- InstallBuild the
databeebinary from the repository with cargo. - Create a first projectInit, apply a changeset, lint, generate SQL. No database needed.
- Read a PostgreSQL databaseA connection profile and
databee pull.
Getting started
- InstallationBuild and install the databee command line tool from the repository.
- Create a first projectStart a project from scratch, change it with a changeset, lint it and generate SQL, without a database.
- Read a PostgreSQL databaseDescribe a connection, pull the schema into a project and pull again without losing identity.
- Validate and lintCheck that the model is sound, check it against PostgreSQL best practices, and apply safe fixes.
- Render a diagramDraw the model as Mermaid, Graphviz DOT, or a deterministic SVG or HTML diagram.
Guides
- CLI workflowThe day-to-day loop on the command line, from changing the model to running an approved ALTER plan.
- MCP server and agent skillLet an AI agent look at, change and check a database design through tool profiles that grow in power only when you ask.
- databee StudioThe visual editor for a databee project: diagram, side panel, findings, snapshots and approval dialogs.
- Migrations and transformationConvert a model to another dialect with every loss reported, and migrate a database with its data into PostgreSQL.
- Exports and test dataWrite data and schema files from export profiles, with subsets, masking and synthetic rows.
- Code generationRust, TypeScript, Python and C# code from the model, deterministic and with every loss reported.
Concepts
- Model files and stable IDsHow a databee project is laid out on disk, why every object has an ID, and what is kept from the database.
- Capability matrixWhat each adapter captures and writes, with honest support levels.
- Changesets and undoWhy every change to the model is a changeset, what the operations are, and how undo works.
- SafetyHow databee keeps destructive work behind a human approval and secrets out of the model.