com.github.chengyuxing.sql.plugins.TemplateFormatter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rabbit-sql Show documentation
Show all versions of rabbit-sql Show documentation
Light wrapper of JDBC, support ddl, dml, query, plsql/procedure/function, transaction and manage sql
file.
package com.github.chengyuxing.sql.plugins;
import org.jetbrains.annotations.NotNull;
@FunctionalInterface
public interface TemplateFormatter {
/**
* Non-prepared Sql template ({@code ${[!]key}}) formatter.
*
* @param value value
* @param isSpecial key start with {@code !} or not
* @return formatted content
*/
@NotNull String format(Object value, boolean isSpecial);
}