storch

Storch is a module to migrate sqlight databases

Types

Migrations with an id and a sql script

pub type Migration {
  Migration(id: Int, up: String)
}

Constructors

  • Migration(id: Int, up: String)

Functions

pub fn migrate(
  migrations: List(Migration),
  on connection: Connection,
) -> Result(Nil, Error)

Pass in a list of migrations and a sqlight connection

Search Document