当前位置:网站首页>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
边栏推荐
- Stress, anxiety or depression? Correct diagnosis and retreatment
- 2022 financial products that can be invested
- Redis' optimistic lock and pessimistic lock for solving transaction conflicts
- Unity script lifecycle day02
- MySQL learning notes - data type (2)
- Unity prefab day04
- Unity animation day05
- 直播预告 | PostgreSQL 内核解读系列第二讲:PostgreSQL 体系结构
- [Dalian University of technology] information sharing of postgraduate entrance examination and re examination
- Unity脚本生命周期 Day02
猜你喜欢
[Dalian University of technology] information sharing of postgraduate entrance examination and re examination
[North Asia data recovery] data recovery case of database data loss caused by HP DL380 server RAID disk failure
Go zero micro service practical series (IX. ultimate optimization of seckill performance)
MySQL学习笔记——数据类型(数值类型)
How was MP3 born?
压力、焦虑还是抑郁? 正确诊断再治疗
Quelles sont les perspectives de l'Internet intelligent des objets (aiot) qui a explosé ces dernières années?
. Net applications consider x64 generation
Nine CIO trends and priorities in 2022
Summer Review, we must avoid stepping on these holes!
随机推荐
Scientific research cartoon | what else to do after connecting with the subjects?
Find numbers
Enter the width!
Force button brush question 01 (reverse linked list + sliding window +lru cache mechanism)
一篇文章学会GO语言中的变量
华为云数据库DDS产品深度赋能
MySQL index optimization
Audio and video technology development weekly | 252
Unity script lifecycle day02
干货 | fMRI标准报告指南新鲜出炉啦,快来涨知识吧
[book club issue 13] packaging format and coding format of audio files
函数式接口,方法引用,Lambda实现的List集合排序小工具
Redis shares four cache modes
Redis sentinel mode realizes one master, two slave and three Sentinels
Salient map drawing based on OpenCV
Deep learning network regularization
小数,指数
Weibo and Huya advance into interest communities: different paths for peers
MySQL learning notes - data type (2)
c# 实现定义一套中间SQL可以跨库执行的SQL语句