Crate migratex

Crate migratex 

Source
Expand description

§Migratex

Migratex is an agnostic migration toolkit library. Migrate anything! Anywhere! 🚀

💪 It can be used to migrate database / data / files / binaries, etc from one version to another.

Macros§

metadata_accessors

Structs§

Migratex
Migratex manages the migrations, this is the main struct. Think of it as a “migration manager”, “migrator”, “runner”). It can be used to migrate database / data / files / binaries, etc from one version to another.

Enums§

MetaStatus
The status of a migration.

Traits§

Metadata
Migration
A migration is a version of a change in the data. It can be a database migration, a file migration, a binary migration, etc. It can be up (upgrade) or down (downgrade / rollback).

Functions§

init_meta_datetimes_if_empty
Initialize created_at / updated_at if created_at is empty.
meta_loaded
Calls init_meta_datetimes_if_empty and returns Ok(meta).

Type Aliases§

BoxMigration
BoxMigration is the type of a migration.