DbSetup-kotlin / com.ninja_squad.dbsetup_kotlin / com.ninja_squad.dbsetup.DbSetup / launchWith

launchWith

fun DbSetup.launchWith(tracker: DbSetupTracker): Unit

Extension function of DbSetup allowing to launch it with a tracker. This allows launching the setup in an easier way.

Instead of doing

val theSetup = dbSetup {
    ...
}
tracker.launchIfNecessary(theSetup)

you can simply do

dbSetup {
    ...
}.launchWith(tracker)


Parameters

tracker - the tracker used to launch the DbSetup, if necessary.

Author
JB Nizet