public String escapeLiteral(String str) {
        StringBuilder builder = new StringBuilder();
        for (char ch : str.toCharArray()) {
            if (ch == '\'') {
                builder.append("''");
                continue;
            }
            builder.append(ch);
        }
        return builder.toString();
    }
Fluent builder for {@code SQLTemplates} instances     *
querydsl-sql/src/main/java/com/querydsl/sql/SQLTemplates.java