[][src]Module butane_core::migrations

For working with migrations. If using the butane CLI tool, it is not necessary to use these types directly.

Modules

adb

Abstract representation of a database schema. If using the butane CLI tool, there is no need to use this module. Even if applying migrations without this tool, you are unlikely to need this module.

Structs

FsMigration

A migration stored in the filesystem

FsMigrations

A collection of migrations stored in the filesystem.

MemMigration

A migration stored in memory.

MemMigrations

A collection of migrations stored in memory.

Traits

Migration

Type representing a database migration. A migration describes how to bring the database from state A to state B. In general, the methods on this type are persistent -- they read from and write to the filesystem.

MigrationMut

A migration which can be modified

Migrations

A collection of migrations.

MigrationsMut

Functions

copy_migration

Copies the data in from to to.

from_root

Create a Migrations from a filesystem location. The #[model] attribute will write migration information to a butane/migrations directory under the project directory.