Module migration

Source
Expand description

Types to declare schemas and migrations.

A good starting point is too look at crate::migration::schema.

Macros§

expect
Creates an instance of Expect from string literal:

Structs§

Alter
This is the type used to return table alterations in migrations.
Config
Config is used to open a database from a file or in memory.
Create
This is the type used to return table creations in migrations.
Migrator
Migrator is used to apply database migrations.
NoTable
Special table name that is used as souce of newly created tables.

Attribute Macros§

schema
Use this macro to define your schema.