Expand description
A database schema migration library that supports directed acyclic graph (DAG) dependencies between migrations.
To use with a specific database, an adapter is required. Known adapter crates:
- PostgreSQL:
schemer-postgres - SQLite:
schemer-rusqlite
Modules§
- testing
- Test harness for applying a generic test suite to any backend-specific schemer adapter.
Macros§
- migration
- Create a trivial implementation of
Migrationfor a type. - test_
schemer_ adapter - Test an
Adapterwith the generic test suite.
Structs§
- Migrator
- Primary schemer type for defining and applying migrations.
Enums§
- Dependency
Error - Error resulting from the definition of migration identity and dependency.
- Migration
Direction - Direction in which a migration is applied (
Up) or reverted (Down). - Migrator
Error - Error resulting either from migration definitions or from migration application with an adapter.