All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.monosoul.jooq.settings.SettingsAware.kt Maven / Gradle / Ivy

There is a newer version: 6.1.5
Show newest version
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)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy