Skip to content

Updater

Sonatype Nexus (Releases) Sonatype Nexus (Snapshots)

SADU provides a database updater which deploys patch to your database. Which scripts are deployed is defined by a database version in the database itself and in your project.

The patches are semi failsave. If one of the queries fails the upgrade will be aborted. This avoids that the database ends up in a partially migrated state.

dependencies {
    implementation("de.chojo.sadu", "sadu-updater", "<version>")
}

Picking a SQL Type

You need a sql type to use this module. These types are provided by our database implementations. Make sure to import the one you need.

Once you imported it you can use the type class which has the same name as your database.