Crate dbmigrate_lib

source ·
Expand description

Database migrations for Postgres, MySQL, and SQLite.


All possible errors


A migration has 2 files: one up and one down
A single direction migration file
The MySQL driver
The PostgreSQL driver
The SQLite driver


A migration direction, can be Up or Down


The common trait that all databases need to implement in order for migrations to work


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