Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Schema manipulation DSL for Slick

Notifications You must be signed in to change notification settings

akshaal/slick-migration-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status

A library for defining database migrations, for use with Slick, including a DSL to define type safe and typo safe table migrations that are defined in terms of Slick table definitions.

Example:

implicit val dialect = new H2Dialect

val migrate =
  TableMigration(myTable)
    .create
    .addColumns(_.col1, _.col2)
    .addIndexes(_.index1)
    .renameColumn(_.col03, "col3") &
  SqlMigration("insert into myTable (col1, col2) values (10, 20)")

withSession { implicit session: Session =>
  migrate()
}

About

Schema manipulation DSL for Slick

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 100.0%