dev.monosoul.jooq.settings.SettingsAware.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jooq-gradle-plugin Show documentation
Show all versions of jooq-gradle-plugin Show documentation
Generates jOOQ classes using dockerized database
package dev.monosoul.jooq.settings
import dev.monosoul.jooq.settings.JooqDockerPluginSettings.WithContainer
import dev.monosoul.jooq.settings.JooqDockerPluginSettings.WithoutContainer
import dev.monosoul.jooq.util.callWith
import groovy.lang.Closure
import org.gradle.api.Action
internal interface SettingsAware {
/**
* Configures the Jooq Docker plugin to run with a DB container.
*/
@Suppress("unused")
fun withContainer(configure: Action)
/**
* Configures the Jooq Docker plugin to run with a DB container.
*/
@Suppress("unused")
fun withContainer(closure: Closure) = withContainer(closure::callWith)
/**
* Configures the Jooq Docker plugin to run without a DB container (using an external DB instance).
*/
@Suppress("unused")
fun withoutContainer(configure: Action)
/**
* Configures the Jooq Docker plugin to run without a DB container (using an external DB instance).
*/
@Suppress("unused")
fun withoutContainer(closure: Closure) = withoutContainer(closure::callWith)
}