当前位置:网站首页>The new generation of domestic ORM framework sagacity sqltoy-5.1.25 release
The new generation of domestic ORM framework sagacity sqltoy-5.1.25 release
2022-07-04 15:52:00 【Open source China Information】
Open source address :
- github: https://github.com/sagframe/sagacity-sqltoy
- gitee: https://gitee.com/sagacity/sagacity-sqltoy
- idea plug-in unit ( But directly in idea Retrieve installation in ): https://github.com/threefish/sqltoy-idea-plugins
Update the content
1、findByQuery(QueryExecutor query) result QueryResult increase List getFirstColumn(boolean distinct) Method , It is convenient to extract the single column values of the result set to form a one-dimensional array
2、sql file filters add clone Method
<sql id="qstart_clone_param_case"><filters> <!-- It is applicable when the front end has only single date , Construct a endDate Form date range filter --> <clone param="beginDate" as-param="endDate"/> <to-date params="endDate" increment-unit="days" format="yyyy-MM-dd" increment-time="1"/></filters><value><![CDATA[ select * from sqltoy_trans_info_15d t where t.trans_date>=:beginDate #[and t.trans_date<:endDate]]]></value></sql>sqltoy The key advantage of :
//------------------ understand sqltoy The key advantage of : -------------------------------------------------------------------------------------------*///1、 The simplest and most intuitive sql Compiling mode ( It's not just query statements ), Using the pre-processing regularization method of conditional parameters , Give Way sql The statement part is highly consistent with the client //2、sql Comments are supported in ( Evaded the right hint The influence of characteristics , know hint Do you ? search oracle hint), And dynamic update loading , It is convenient for the management of the whole process of development and later maintenance //3、 Support cache translation and reverse cache condition retrieval ( Match the name to the exact key), Realization sql Simplify and greatly improve performance //4、 Support fast paging and paging optimization , Achieve the highest level of paging optimization , It also takes into account cte Multiple with as Optimization support in case //5、 Support parallel query //6、 Completely eradicate sql Injection problem //7、 Support row column conversion 、 Group summary and average 、 On a year-on-year basis , It's about solving complex problems with algorithms sql, It's also solved sql Cross database issues //8、 Support automatic adaptation of reserved words //9、 Support cross database function self adaptation , Thus, it is very helpful for a set of code to adapt to a variety of databases and facilitate the commercialization , such as oracle Of nvl, When sql stay mysql The environment is automatically replaced with ifnull//10、 Support sub database and sub table //11、 Provides access top、 take random Record 、 Tree table structure construction and recursive query support 、updateFetch A single interaction completes practical functions such as modification and query //12、sqltoy Of update、save、saveAll、load etc. crud Operation circumvents jpa The defects of , See update(entity,String...forceUpdateProps) and updateFetch//13、 It provides a very humanized condition processing : Exclusive conditions 、 Addition and subtraction of date conditions and extraction at the end of the month and the beginning of the month //14、 The query result date is provided 、 Number formatting 、 Safe desensitization treatment , Make complicated things simple , Greatly simplify sql Or the secondary processing of results //-----------------------------------------------------------------------------------*/sqltoy Feature introduction :
- sqltoy The core construction idea of

- sqltoy Comparison of mybatis(plus) and fluent mybatis The core of : Query statement writing 、 Readability 、 Maintainability


- Objectification crud It's the foundation , but sqltoy Targeted improvements :update、updateSaveFetch、updateFetch etc.

- sqltoy Cache translation , Greatly reduce table Association and simplify sql, Improve your query performance at the geometric level

- Ultimate paging , It also helps you achieve a significant improvement in query performance
- Quick Pagination :@fast() Realize the first retrieval of single page data and then associated query , Greatly increase the speed
- Paging optimizer :page-optimize Let the paging query change from twice to 1.3~1.5 Time ( Using cache to realize the total number of records with the same query conditions, there is no need to query repeatedly in a certain period
- sqltoy The process of paging to get the total record is not simple select count(1) from ( original sql); It's intelligent judgment whether it becomes :select count(1) from 'from After statement ', And automatically eliminate the outermost order by
- sqltoy Support parallel query :parallel="true", Query the total number of records and single page data at the same time , Significantly improved performance

- Convenient cross database statistical calculation : Data rotation

- Convenient cross database statistical calculation : Infinite grouping statistics ( Including summary and average )

- Convenient cross database statistical calculation : Year on year and month on month

边栏推荐
- LeetCode 35. Search the insertion position - vector traversal (O (logn) and O (n) - binary search)
- Unity脚本生命周期 Day02
- MySQL - MySQL adds self incrementing IDs to existing data tables
- Summer Review, we must avoid stepping on these holes!
- PXE network
- 力扣刷题01(反转链表+滑动窗口+LRU缓存机制)
- Enter the width!
- MySQL组合索引(多列索引)使用与优化案例详解
- 进制形式
- Lombok使用引发的血案
猜你喜欢

这几年爆火的智能物联网(AIoT),到底前景如何?
![[Dalian University of technology] information sharing of postgraduate entrance examination and re examination](/img/06/df5a64441814c9ecfa2f039318496e.jpg)
[Dalian University of technology] information sharing of postgraduate entrance examination and re examination

中国主要城市人均存款出炉,你达标了吗?
![[native JS] optimized text rotation effect](/img/50/3c09f223e821c14e7e9e0fb47622b6.jpg)
[native JS] optimized text rotation effect

Big God explains open source buff gain strategy live broadcast

Numpy notes

华为云数据库DDS产品深度赋能

直播预告 | PostgreSQL 内核解读系列第二讲:PostgreSQL 体系结构
Redis shares four cache modes

MySQL learning notes - data type (2)
随机推荐
Unity script API - component component
Understand the context in go language in an article
Nine CIO trends and priorities in 2022
Lombok使用引发的血案
PXE network
【读书会第十三期】FFmpeg 查看媒体信息和处理音视频文件的常用方法
数据湖治理:优势、挑战和入门
LNX efficient search engine, fastdeploy reasoning deployment toolbox, AI frontier paper | showmeai information daily # 07.04
一篇文章搞懂Go语言中的Context
宽度与对齐
Intelligent customer service track: Netease Qiyu and Weier technology play different ways
LeetCode 35. Search the insertion position - vector traversal (O (logn) and O (n) - binary search)
Object distance measurement of stereo vision
The per capita savings of major cities in China have been released. Have you reached the standard?
Salient map drawing based on OpenCV
函数式接口,方法引用,Lambda实现的List集合排序小工具
Halcon knowledge: NCC_ Model template matching
web聊天室实现
The 17 year growth route of Zhang Liang, an open source person, can only be adhered to if he loves it
Force button brush question 01 (reverse linked list + sliding window +lru cache mechanism)