Package-level declarations

Types

Link copied to clipboard
class MigrationException(val reason: MigrationExceptionReason, val details: String? = null, cause: Throwable? = null) : OctaviusException

Exception thrown when a migration run cannot go on.

Link copied to clipboard

Why a migration run stopped.

Link copied to clipboard

A migration's version, ordered the way version numbers are ordered rather than the way text is.

Link copied to clipboard
data class MigratorConfig(val sqlLocations: List<String> = listOf("db/migration"), val codePackages: List<String> = emptyList(), val classLoader: ClassLoader? = null, val historySchema: String = "public", val historyTable: String = "octavius_migration_history", val lockTimeout: Duration = 30.seconds, val outOfOrder: Boolean = false, val baselineVersion: String? = null, val target: String? = null)

Where the migrator looks and what it accepts.

Link copied to clipboard

A migration written in Kotlin rather than in .sql.

Link copied to clipboard

Brings a database up to date with the migrations in this application.