Expand description

Provides sql migration scripts and methods for executing migrations.

use migrations::run_postgres_migrations;
use diesel::{pg::PgConnection};

let connection = PgConnection::establish(
     "postgres://admin:admin@localhost:5432/splinterd").unwrap();

run_postgres_migrations(&connection).unwrap();

Functions

Get whether there are any pending migrations

Get whether there are any pending migrations

Run all pending database migrations.

Run all pending database migrations.