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

liquibase.parser.LiquibaseSqlParser Maven / Gradle / Ivy

The newest version!
package liquibase.parser;

import liquibase.changelog.ChangeSet;
import liquibase.plugin.Plugin;
import liquibase.util.StringClauses;

public interface LiquibaseSqlParser extends Plugin {

    StringClauses parse(String sqlBlock);

    StringClauses parse(String sqlBlock, boolean preserveWhitespace, boolean preserveComments);

    /**
     * @param changeSet the changeset associated with the sql being parsed. If not null, the changeset identifying
     *                  information should be included in any exceptions thrown if the sql cannot be parsed.
     */
    default StringClauses parse(String sqlBlock, boolean preserveWhitespace, boolean preserveComments, ChangeSet changeSet) {
        return parse(sqlBlock, preserveWhitespace, preserveComments);
    }

    int getPriority();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy