sqltoy-orm-4.16.11 release, some functions are optimized

Open source address:

update content

1. Fix #[and  @loop (:params,' status=':params[i]'','or')] after processing #[] without parameters resulting in the defect that was eliminated as a whole
2. Increase convertType(pageModel, classType) to facilitate the conversion of the overall type of the paging model

Fourteen key features of sqltoy:

1. The simplest and most intuitive way to write SQL (not just query statements), using conditional parameter pre-processing and regularization, so that the SQL statement part is highly consistent with the client
2. Comments are supported in SQL (avoid the hint feature Influence, know the hint? Search for oracle hint), and dynamic update and loading, which is convenient for development and later maintenance of the management of the entire process.
3. Support cache translation and reverse cache condition retrieval (match the name into an exact key through the cache) to achieve SQL Simplification and performance improvement
4. Support fast paging and paging optimization functions to achieve the highest level of paging optimization, and also consider the optimization support in the case of multiple cte with as
5. Support parallel query
6. Eliminate SQL injection problems at all. There is no need to discuss this topic.
7. Support row and column conversion, group summary and average, year-on-year quarter-on-year calculation. It uses algorithms to solve complex SQL and also solves SQL cross-database problems.
8. Supports automatic adaptation of reserved words.
9. Supports cross-database functions. Adaptation, which is very beneficial for a set of codes to adapt to a variety of databases for easy productization, such as Oracle's nvl, when SQL is executed in the mysql environment, it is automatically replaced with ifnull
10, supports sub-database sub-table
11, and provides top and random Practical functions such as records, tree structure structure and recursive query support, updateFetch single interaction to complete modification and query
, etc.12, SQLtoy's update, save, saveAll, load and other crud operations avoid the defects of hibernate jpa, and you can compare update/ updateAll, saveOrUpdate/saveOrUpdateAll internal differences
13. Provides extremely user-friendly condition processing: exclusive conditions, date condition addition and subtraction, and extraction of the end of the month and the beginning of the month, etc.
14. Provides query result date, number formatting, and security desensitization processing, making complex things simple, greatly simplifying the secondary processing of SQL or results

  • Briefly introduce several characteristics of sqltoy

sqltoy provides the most concise dynamic sql writing

Let's compare the implementation of mybatis (from the perspective of readability, maintainability, etc.) :

  • Cache translation, use cache to reduce related queries, simplify SQL and greatly improve efficiency

  • Extreme paging optimization

  • Parallel query
// 使用并行查询同时执行2个sql,条件参数是2个查询的合集
String[] paramNames = new String[] { "userId", "defaultRoles", "deployId", "authObjType" };
Object[] paramValues = new Object[] { userId, defaultRoles, DEPLOY_ID,GROUP };

List<QueryResult<TreeModel>> list = super.parallQuery(
		Arrays.asList(ParallQuery.create().sql("webframe_searchAllModuleMenus").resultType(TreeModel.class),
				ParallQuery.create().sql("webframe_searchAllUserReports").resultType(TreeModel.class)),
		paramNames, paramValues);
  • Data rotation

  • Infinite pole group statistics (including summary and average), the algorithm configuration is simple and cross-database!
  • YoY MoM

Guess you like

Origin www.oschina.net/news/120898/sqltoy-orm-4-16-11-released