liquibase.parser.LiquibaseSqlParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
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();
}