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

gu.sql2java.mysql.MysqlSqlFormatter Maven / Gradle / Ivy

There is a newer version: 5.2.0
Show newest version
package gu.sql2java.mysql;

import com.google.common.base.Predicates;
import gu.sql2java.SqlFormatters.QuoteFormatter;

/**
 * @author guyadong 
 * @since 3.14.0
 */
public class MysqlSqlFormatter extends QuoteFormatter {

    public MysqlSqlFormatter() {
        super("`");
    }
    @Override
    public String tablename(String tablename) {
        return quoteIf(tablename, Predicates.alwaysTrue());
    }
    @Override
    public String columname(String columname) {
        return quoteIf(columname, Predicates.alwaysTrue());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy