Skip to content

Releases: imyuyu/sqltoy-idea-plugin

v0.5.0

14 Jun 15:43
Compare
Choose a tag to compare

Added

  • Support cache translation reference redirection
  • Added language injections: 'SQLToy SQL ID' and 'SQLToy TRANSLATE ID'
  • 支持*-translate.xml文件的缓存定义跳转至java代码lightDao.getTranslateCachenew CacheMatchFilter().cacheName("dictKeyName")new Translate("dictKeyName")
  • 支持*-translate.xml文件内部Checker属性的cache值跳转到缓存定义。<sql-increment-checker cache="dictKeyName"><sql-translate cache="dictKeyName">
  • 支持*.sql.xml文件sql定义中cache值跳转到缓存定义.<sql id="sys_findStaffInfo"><translate cache="dictKeyName" columns="DICT_KEY" /></sql>
  • 以上所有xml中的cache属性,java中的cacheName均支持自动完成、自动提示
  • sqlIdcacheName的引用均增加了下划线高亮.
  • 增加了SQLToy SQL IDSQLToy TRANSLATE ID两个语言注入,可以在任意字符串位置将某个字符串注入为sqlIdcacheName,注入后效果一致

Changed

  • Refactoring indexes while supporting SQLId and cache translation
  • 重构了文件索引以同时支持sqlId和缓存翻译
  • 优化部分代码匹配机制,提高性能及内存消耗

v0.4.3

28 May 15:08
Compare
Choose a tag to compare

Added

  • Inject the generator attribute of the @Id annotation into the Java class name
  • The load parameter of the @OnetoOne and @onetomany annotations is injected as SQL, with support for syntax highlighting.
  • *-translate.xml files support syntax highlighting.
  • @Id注解的generator参数注入为java类名, 方便引用及跳转
  • @OneToOne@OneToMany注解的load参数注入为sql,支持语法高亮
  • *-translate.xml文件支持语法注入
  • *-translate.xml文件中的datasource属性、service属性直接语法注入为spring bean name方便跳转(有可能不生效,很诡异)
  • *-translate.xml file use sqltoy icon

Fixed

  • 修复2024.1中语法注入报错的问题
  • 优化语法注入逻辑
  • 增强健壮性,修复在某些情况下插件报错的问题

v0.4.2

19 May 13:17
Compare
Choose a tag to compare

Added

  • Add SQL execution icon to the *.sql.xml
  • Syntax highlighting is supported when SQL statements are used directly in Java code
  • *.sql.xml文件中增加一键执行sql语句(会打开database conole并自动填充sql)
  • 在java代码中直接使用sql时支持语法高亮,如lightDao.findPage(new Page(), "select * from staff_info");
  • new QueryExecutor("select * from staff_info")的参数如果是普通sql,则支持语法高亮

v0.4.1

12 May 15:55
Compare
Choose a tag to compare

Added

  • Optimize quick document display content
  • 优化快速文档展示效果,直接显示sql内容

v0.4.0

26 Apr 13:11
Compare
Choose a tag to compare

Added

  • added support for SqlToy-Plus;
  • sqltoy sql xml inspection
  • sqltoy framework detector
  • never use SQL checks
  • 支持单sql.xml文件的语法检查,如id必填,id重复(仅当前xml文件)等
  • 支持自动探测sqltoy框架(暂时太大用处)
  • 支持sqlid未使用检测,当前实现比较简单,未来再扩充
  • 支持sql.xml中针对id查找使用

Fixed

  • Fix the issue that caused code prompts to become invalid
  • 修复影响代码提示的问题

0.3.0

07 Apr 16:11
Compare
Choose a tag to compare

Added

  • added support for IntelliJ IDEA 2024.1.
  • 实现java调用时的代码自动完成,自动提醒sqlId
  • 实现java调用中时,快速文档展示

0.2.0

16 Dec 07:19
Compare
Choose a tag to compare

Added

  • Provide templates for creating new sql.xml and sqltoy translate.xml files
  • Support using double shift to search for sqlId
  • 支持快捷新建*.sql.xml和缓存翻译translate.xml
  • 支持使用 double shift 搜索 sqlId

0.1.0

24 Nov 15:15
Compare
Choose a tag to compare
  • Support xml definition jump java call statement
  • java call jump xml definition
  • SQL statement highlighting