Файли
openidea/src/features
l0ng-ai a2f71a22d6 feat(database): SQL in MyBatis mapper XML
The statements of <select>, <insert>, <update>, <delete> and <sql> in a
MyBatis mapper are highlighted as SQL (in the file's data source
dialect) and get the SQL file tools: completion, unresolved table and
column inspections, Go to Declaration into the Database tool window and
Quick Documentation, against the data source of the file's SQL
resolution scope (or the project's only data source).

The SQL tools read the mapper with everything but the statements blanked
out, so offsets stay the file's: #{} and ${} read as parameters,
entities as their character, CDATA as text, <selectKey> and comments as
nothing, and <where>, <set>, <trim> and <foreach> as what they add
(including dropping a leading AND/OR and a trailing comma).

Closes #2457
2026-11-16 10:44:28 +08:00
..