Skip to main content

Crate schemerz

Crate schemerz 

Source
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:

Modules§

testing
Test harness for applying a generic test suite to any backend-specific schemerz adapter.

Macros§

migration
Create a trivial implementation of Migration for a type.
test_schemerz_adapter
Test an Adapter with the generic test suite.

Structs§

Migrator
Primary schemerz type for defining and applying migrations.

Enums§

DependencyError
Error resulting from the definition of migration identity and dependency.
MigrationDirection
Direction in which a migration is applied (Up) or reverted (Down).
MigratorError
Error resulting either from migration definitions or from migration application with an adapter.

Traits§

Adapter
Trait necessary to adapt schemerz’s migration management to a stateful backend.
Migration
Metadata for defining the identity and dependence relations of migrations. Specific adapters require additional traits for actual application and reversion of migrations.