[feat] database-ptc-object 容器类型参数关联支持#662
Merged
Bkm016 merged 1 commit intoTabooLib:dev/6.2.3from Feb 11, 2026
Merged
Conversation
- 支持 List/Set/Map 字段自动创建子表存储(SQLite/MySQL/PostgreSQL) - 修复连接池死锁:两阶段读取拆分 ResultSet 读取与子表加载 - 修复 PostgreSQL 列名引用:硬编码反引号改为 asFormattedColumnName() - 新增 DatabaseMap/DatabaseList/DatabaseSet 代理类,实现标准 MutableCollection 接口 - DataMapper 新增 mapOf/listOf/setOf API,支持按 ID 或 Filter 定位父记录 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
为 database-ptc-object 模块添加容器类型(List/Set/Map)字段的子表存储支持,以及基于代理模式的 Collection Accessor API。
主要改动
容器类型子表支持
List<String>、Set<String>、Map<String, String>字段自动创建独立子表存储sort_order列保持插入顺序map_key+map_value列存储键值对连接池死锁修复
maximumPoolSize=1场景下嵌套获取连接导致的超时死锁PostgreSQL 列名引用兼容
`)改为asFormattedColumnName()动态引用Collection Accessor API
DatabaseMap/DatabaseList/DatabaseSet代理类,实现标准MutableMap/MutableList/MutableSet接口mapOf()/listOf()/setOf()方法,支持按 @id 或 Filter 定位父记录后直接操作子表修改文件
AnalyzedClass.kthasCollectionMembers/collectionMembersAnalyzedClassMember.ktisList/isSet/isMap/isCollectionContainer.ktcollectionTableInfosContainerOperatorImpl.ktContainerSQL.ktContainerSQLite.ktContainerPostgreSQL.ktCollectionTableInfo.ktCollectionAccessor.ktDataMapper.ktDataMapperImpl.ktTransactionalDataMapper.ktCollectionTest.ktCloses #661