jooqpreprocessor.parsers.ForeignKeyChecks Maven / Gradle / Ivy
                 Go to download
                
        
                    Show more of this group  Show more artifacts with this name
Show all versions of jooq-preprocessor Show documentation
                Show all versions of jooq-preprocessor Show documentation
A preprocessor for SQL files to allow for parsing with JOOQ parser
                
             The newest version!
        
        package jooqpreprocessor.parsers;
import java.util.regex.Pattern;
public final class ForeignKeyChecks implements StatementParser {
    private static final Pattern PATTERN = Pattern.compile("(SET|set) FOREIGN_KEY_CHECKS = [01]");
    @Override
    public boolean matches(final String statement) {
        return PATTERN.matcher(statement.trim()).matches();
    }
    @Override
    public String convert(final String statement) {
        return "";
    }
}
    © 2015 - 2025 Weber Informatics LLC | Privacy Policy