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

liquibase.sql.SqlConfiguration Maven / Gradle / Ivy

There is a newer version: 4.30.0
Show newest version
package liquibase.sql;

import liquibase.configuration.AutoloadedConfigurations;
import liquibase.configuration.ConfigurationDefinition;
import liquibase.configuration.ConfigurationValueConverter;

import java.util.logging.Level;

/**
 * Configuration container for global properties.
 */
public class SqlConfiguration implements AutoloadedConfigurations {

    public static final ConfigurationDefinition SHOW_AT_LOG_LEVEL;
    public static final ConfigurationDefinition SHOW_SQL_WARNING_MESSAGES;

    static {
        ConfigurationDefinition.Builder builder = new ConfigurationDefinition.Builder("liquibase.sql");

        SHOW_AT_LOG_LEVEL = builder.define("logLevel", Level.class)
                .setDescription("Level to log SQL statements to")
                .setValueHandler(ConfigurationValueConverter.LOG_LEVEL)
                .setDefaultValue(Level.FINE)
                .build();
        SHOW_SQL_WARNING_MESSAGES = builder.define("showSqlWarnings", Boolean.class)
                .setDescription("Show SQLWarning messages")
                .setDefaultValue(Boolean.TRUE)
                .build();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy