Module splinter::migrations[][src]

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 database migrations to create tables defined by biome

Run database migrations to create tables defined by biome