version
Git-like versioning for database diffs. Stores schema and data diff snapshots as commits so you can browse history, compare any two points in time, generate rollback SQL, and manage parallel lines of schema evolution through branches — all without a live database connection after the commit is taken.
Overview
deepdiffdb version <subcommand> [flags]
| Subcommand | Description |
|---|---|
version init | Initialise a .deepdiffdb/ repository in the current directory |
version commit | Run a full diff and store the result as a new commit |
version log | Show commit history from newest to oldest |
version diff | Compare schema evolution between two commits |
version rollback | Generate rollback SQL to undo the changes in a commit |
version branch | List branches, or create a new one |
version checkout | Switch to a branch |
version tree | Show ASCII commit graph for all branches |
version init
Creates the .deepdiffdb/ directory structure in the current directory. Idempotent — safe to run on an existing repo.
Usage
deepdiffdb version init