Crate dbmigrate_lib
source ·Expand description
Database migrations for Postgres, MySQL, and SQLite.
Modules
All possible errors
Structs
A migration has 2 files: one up and one down
A single direction migration file
The MySQL driver
The PostgreSQL driver
The SQLite driver
Enums
A migration direction, can be Up or Down
Traits
The common trait that all databases need to implement in order
for migrations to work
Functions
Creates 2 migration file: one up and one down
Returns a driver instance depending on url
Read the path given and read all the migration files, pairing them by migration
number and checking for errors along the way
Type Definitions
Simple way to hold migrations indexed by their number