Expand description
Database migrations for Postgres, MySQL, and SQLite.
Modules§
- errors
- All possible errors
Structs§
- Migration
- A migration has 2 files: one up and one down
- Migration
File - A single direction migration file
- Mysql
Driver - The MySQL driver
- Postgres
Driver - The PostgreSQL driver
- Sqlite
Driver - The SQLite driver
Enums§
- Direction
- A migration direction, can be Up or Down
Traits§
- Driver
- The common trait that all databases need to implement in order for migrations to work
Functions§
- create_
migration - Creates 2 migration file: one up and one down
- get_
driver - Returns a driver instance depending on url
- read_
migration_ files - Read the path given and read all the migration files, pairing them by migration number and checking for errors along the way
Type Aliases§
- Migrations
- Simple way to hold migrations indexed by their number