当前位置:网站首页>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

边栏推荐
- Huawei cloud database DDS products are deeply enabled
- Unity animation day05
- Introduction of text mining tools [easy to understand]
- . Net delay queue
- Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
- 深入JS中几种数据类型的解构赋值细节
- Rearrange array
- 开源人张亮的 17 年成长路线,热爱才能坚持
- Unity动画Animation Day05
- Unity预制件Prefab Day04
猜你喜欢

函数式接口,方法引用,Lambda实现的List集合排序小工具

Go zero micro service practical series (IX. ultimate optimization of seckill performance)

夜天之书 #53 Apache 开源社群的“石头汤”

.Net 应用考虑x64生成

MySQL learning notes - data type (numeric type)

案例分享|金融业数据运营运维一体化建设

Case sharing | integrated construction of data operation and maintenance in the financial industry

MySQL learning notes - data type (2)

Scientific research cartoon | what else to do after connecting with the subjects?

Common API day03 of unity script
随机推荐
After the eruption of Tonga volcano, we analyzed the global volcanic distribution and found that the area with the most volcanoes is here!
2022年九大CIO趋势和优先事项
压力、焦虑还是抑郁? 正确诊断再治疗
Unity animation day05
Unity script API - transform transform
Salient map drawing based on OpenCV
中国主要城市人均存款出炉,你达标了吗?
Scientific research cartoon | what else to do after connecting with the subjects?
Stress, anxiety or depression? Correct diagnosis and retreatment
数据库函数的用法「建议收藏」
Redis的4种缓存模式分享
重排数组
Essential basic knowledge of digital image processing
%s格式符
Summer Review, we must avoid stepping on these holes!
What encryption algorithm is used for the master password of odoo database?
2022年九大CIO趨勢和優先事項
左右对齐!
AI has surpassed Dr. CS in question making?
Unity update process_ Principle of unity synergy