public interface ISqlAndParams
static <Req> Function<Req,ISqlAndParams> mergeLists(List<List<IPartialFunction<Req,ISqlAndParams>>> list)
String getPreSql()
String getPostSql()
default String getFullSql()
static ISqlAndParams preSql(String sql, Object... params)
static ISqlAndParams of(String preSql, String postSql, Object... params)
static ISqlAndParams postSql(String sql, Object... params)
static ISqlAndParams merge(List<ISqlAndParams> sqlAndParams)
static ISqlAndParams mergePreAndPostsIntoPres(List<ISqlAndParams> sqlAndParams)
static <Query> IPartialFunction<Query,ISqlAndParams> always(Function<Query,ISqlAndParams> fn)
static <Query,T> IPartialFunction<Query,ISqlAndParams> fieldInWhere(Function<Query,T> fieldFn, Function<Query,String> sqlFn)
static <Query> IPartialFunction<Query,ISqlAndParams> stringFieldInWhere(Function<Query,String> fieldFn, Function<Query,String> sqlFn)
static <Query> IPartialFunction<Query,ISqlAndParams> stringFieldInWhereUpperCaseAndTrim(Function<Query,String> fieldFn, Function<Query,String> sqlFn)
Copyright © 2023. All rights reserved.