create

fun create(schemas: List<String>, baselineVersion: String? = null, locations: String = "classpath:db/migration"): (DataSource) -> Unit

Creates a migration runner function that can be passed to OctaviusDatabase.fromDataSource.

Parameters

schemas

List of database schemas to manage via Flyway.

baselineVersion

Version to use as the baseline for Flyway. If null, baselining is disabled.

locations

Path to migration files (defaults to "classpath:db/migration").