FP Scala Wrapper for Flyway
abandoned due to lack of interest
Add one of the following to libraryDependencies in build.sbt.
Supports Scala 2.12.x
"dev.shawngarner" %% "flutterby-cats_1_x" % "<release-version>"
Supports Scala 2.12.x and 2.13.x
"dev.shawngarner" %% "flutterby-cats_2_x" % "<release-version>"
import cats.effect.IO
import cats.implicits._
import flutterby.core.Flutterby
import flutterby.cats.config.ConfigBuilder
import flutterby.cats.syntax.all._
val flutterby: IO[Flutterby[IO]] =
ConfigBuilder
.impl[IO]
.dataSource(jdbcUrl, dbUserName, dbPassword)
.load
for {
fb <- flutterby
successfullyAppliedMigrationCount <- fb.migrate()
infoAfterMigrate <- fb.info()
} yield (successfullyAppliedMigrationCount, infoAfterMigrate)
flutterby | Flyway | Cats Effect | Scala | Java |
---|---|---|---|---|
0.1.x | 5.2.x+ | 1.x | 2.12.x | 1.8+ |
0.1.x | 5.2.x+ | 2.x | 2.12.x/2.13.x | 1.8+ |
0.2.x | 6.4.x+ | 1.x | 2.12.x | 1.8+ |
0.2.x | 6.4.x+ | 2.x | 2.12.x/2.13.x | 1.8+ |