暂无图片
暂无图片
2
暂无图片
暂无图片
暂无图片

数据库操作神器 BeetlSQL 3.23.6 发布

原创 通讯员 2023-08-07
411

2023年7月31日消息,BeetlSQL 3.23.6 发布。

  • SQLManagerExtends 增加 API,自定义枚举转化方式
  • 修复上个版本 Oralce12 翻页 Bug
  • 性能测试增加最新的 Mybatis-Flex
  • 修复开发模式下,某些 SQL 无法自动检测变化的 BUG

maven

<dependency>
    <groupId>com.ibeetlgroupId>
    <artifactId>beetlsqlartifactId>
    <version>3.23.6-RELEASEversion>
dependency>

BeetlSQL 自主研发自 2015 年,目标是提供开发高效,维护高效,运行高效的数据访问框架,它适用范围广,定制性强,写起数据库访问代码特别顺滑,不亚于 MyBatis。你不想写 SQL 也好,或者想更好地写 SQL 也好,BeetlSQL 都能满足这要求,目前支持的数据库如下

  • 传统数据库:MySQL (包括支持 MySQL 协议的各种数据库), MariaDB ,Oralce ,Postgres (包括支持 Postgres 协议的各种数据库), DB2 , SQL Server ,H2 , SQLite , Derby ,神通,达梦,华为高斯,人大金仓,PolarDB,GBase8s,GreatSQL 等
  • 大数据:HBase,ClickHouse,Cassandar,Hive,GreenPlum
  • 物联网时序数据库:Machbase,TD-Engine,IotDB
  • SQL 查询引擎:Drill,Presto,Druid
  • 内存数据库:ignite,CouchBase

如下测试使用了最新的 Hibernate,MyBatis,包含了常用的 orm 操作: 多表联合查询映射(complexMapping),直接执行 sql (executeJdbc), 执行模板 sql (executeTemplate), 执行文件中的模板 sql ( File), 内置插入(insert),Query 调用链,翻页查询 (pageQuery), 内置主键查询 (selectById), one2Many 自动关联查询

enchmark                         Mode  Cnt    Score     Error   Units
JMHMain.beetlsqlComplexMapping   thrpt    5  185.381 ±  99.297  ops/ms
JMHMain.beetlsqlExecuteJdbc      thrpt    5  429.785 ±  71.210  ops/ms
JMHMain.beetlsqlExecuteTemplate  thrpt    5  365.348 ±  82.971  ops/ms
JMHMain.beetlsqlFile             thrpt    5  415.442 ±  70.495  ops/ms
JMHMain.beetlsqlInsert           thrpt    5  210.112 ±  83.903  ops/ms
JMHMain.beetlsqlLambdaQuery      thrpt    5  230.837 ±   9.323  ops/ms
JMHMain.beetlsqlOne2Many         thrpt    5   90.168 ±  17.047  ops/ms
JMHMain.beetlsqlPageQuery        thrpt    5  153.189 ±  59.639  ops/ms
JMHMain.beetlsqlSelectById       thrpt    5  363.174 ±  21.525  ops/ms
JMHMain.flexInsert               thrpt    5  152.944 ±  87.644  ops/ms
JMHMain.flexPageQuery            thrpt    5   75.542 ± 102.908  ops/ms
JMHMain.flexSelectById           thrpt    5  169.640 ± 119.488  ops/ms
JMHMain.jdbcExecuteJdbc          thrpt    5  904.236 ± 169.185  ops/ms
JMHMain.jdbcInsert               thrpt    5  261.621 ± 277.527  ops/ms
JMHMain.jdbcSelectById           thrpt    5  856.954 ± 916.774  ops/ms
JMHMain.jpaExecuteJdbc           thrpt    5   73.955 ±  47.686  ops/ms
JMHMain.jpaExecuteTemplate       thrpt    5   70.500 ±  94.767  ops/ms
JMHMain.jpaInsert                thrpt    5   51.598 ±  87.631  ops/ms
JMHMain.jpaOne2Many              thrpt    5   63.601 ±  66.750  ops/ms
JMHMain.jpaPageQuery             thrpt    5   88.380 ±  29.287  ops/ms
JMHMain.jpaSelectById            thrpt    5  288.006 ±  40.840  ops/ms
JMHMain.mybatisComplexMapping    thrpt    5   93.896 ±  31.784  ops/ms
JMHMain.mybatisExecuteTemplate   thrpt    5  188.542 ± 124.748  ops/ms
JMHMain.mybatisFile              thrpt    5  142.734 ±  79.871  ops/ms
JMHMain.mybatisInsert            thrpt    5  122.523 ±  41.568  ops/ms
JMHMain.mybatisLambdaQuery       thrpt    5    9.207 ±   8.565  ops/ms
JMHMain.mybatisPageQuery         thrpt    5   57.076 ±  49.255  ops/ms
JMHMain.mybatisSelectById        thrpt    5  203.027 ± 162.668  ops/ms
JMHMain.woodExecuteJdbc          thrpt    5  323.917 ±  69.851  ops/ms
JMHMain.woodExecuteTemplate      thrpt    5  358.144 ±  24.423  ops/ms
JMHMain.woodFile                 thrpt    5  404.271 ± 109.444  ops/ms
JMHMain.woodInsert               thrpt    5  176.356 ± 121.517  ops/ms
JMHMain.woodLambdaQuery          thrpt    5  359.186 ±  84.702  ops/ms
JMHMain.woodPageQuery            thrpt    5  208.736 ±  46.900  ops/ms
JMHMain.woodSelectById           thrpt    5  335.235 ±  59.312  ops/ms

BeetlSQL 下载:https://gitee.com/xiandafu/beetlsql

文章来源:https://www.oschina.net/news/251660/beetlsql-3-23-6-released
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论