[PR #211] 达梦数据库schema不完整问题修复,直接使用sql进行查询而非直接go-tool,另ssh会话超时采用隐藏式心跳交互,使用更优雅 #213

Open
opened 2026-02-28 00:39:09 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/team-ide/teamide/pull/211
Author: @ixxxk
Created: 11/11/2025
Status: 🔄 Open

Base: mainHead: main


📝 Commits (9)

  • f6e0a1d 达梦数据库,显示出来的库不完整问题修复
  • 1f53d44 ssh远程连接空闲自动发送(防止会话超时)采用隐藏式处理,前端不再频繁显示^C,影响使用体验,并不做日志记录,不影响使用上下键进行命令切换
  • e028a39 达梦数据库支持ssh隧道
  • ebc1222 internal/module/module_elasticsearch/api.go (line 263) 的 getMapping 逻辑改为通过新 helper,避免继续调用旧的 service.GetMapping(该方法始终访问 /{index}/_mapping/_all,在 ES 8 会报 400)。
  • 1a69f6e pgsql未配置DbName或配置为默认初始化数据库时,先展示所有schema,然后分别使用,而不是每个连接必须配置一个DbName,使用起来很不灵活,很不优雅
  • f74d30a 终端连接增加临时ANSI 渲染,方便ls等命令,直观看到文件夹或文件等类型的区分,也更美观
  • 0a60720 fix
  • 8e22842 当前 ES 的 like 是用 wildcard query 做的,而 wildcard 不走分词/不做大小写归一,并且默认 大小写敏感。如果 mem_name 是 text 并经过 lowercase 分词(常见),索引里实际 term 可能是 cqtany,所以你用 CQTany 匹配不到;但中文(如 秀)没有大小写差异,所以能匹配上。
  • 6e952ad 重构like,改为类似mysql的like '%xxxxx%'

📊 Changes

11 files changed (+915 additions, -64 deletions)

View changed files

📝 internal/context/create.go (+3 -1)
📝 internal/module/module_database/api.go (+356 -32)
📝 internal/module/module_elasticsearch/api.go (+75 -2)
internal/module/module_elasticsearch/search_like_fix.go (+245 -0)
internal/module/module_elasticsearch/search_like_fix_test.go (+53 -0)
📝 internal/module/module_id/id.go (+21 -0)
📝 internal/module/module_toolbox/api_toolbox.go (+2 -0)
📝 internal/module/module_toolbox/toolbox.go (+39 -8)
📝 internal/module/module_toolbox/worker.go (+19 -1)
📝 pkg/ssh/shell.go (+19 -18)
📝 pkg/ssh/terminal_work.go (+83 -2)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/team-ide/teamide/pull/211 **Author:** [@ixxxk](https://github.com/ixxxk) **Created:** 11/11/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (9) - [`f6e0a1d`](https://github.com/team-ide/teamide/commit/f6e0a1d57897aee259f52e38c281ec4670216e76) 达梦数据库,显示出来的库不完整问题修复 - [`1f53d44`](https://github.com/team-ide/teamide/commit/1f53d449627074c35a9d6c7fc14f5eaae2fb763d) ssh远程连接空闲自动发送(防止会话超时)采用隐藏式处理,前端不再频繁显示^C,影响使用体验,并不做日志记录,不影响使用上下键进行命令切换 - [`e028a39`](https://github.com/team-ide/teamide/commit/e028a39d596cdad08fc7faf83ccd376adc753f96) 达梦数据库支持ssh隧道 - [`ebc1222`](https://github.com/team-ide/teamide/commit/ebc1222f506df92d092f5d2ac1dada2ead689ebe) internal/module/module_elasticsearch/api.go (line 263) 的 getMapping 逻辑改为通过新 helper,避免继续调用旧的 service.GetMapping(该方法始终访问 /{index}/_mapping/_all,在 ES 8 会报 400)。 - [`1a69f6e`](https://github.com/team-ide/teamide/commit/1a69f6e6837dde7d79373339f14fa017770f36bf) pgsql未配置DbName或配置为默认初始化数据库时,先展示所有schema,然后分别使用,而不是每个连接必须配置一个DbName,使用起来很不灵活,很不优雅 - [`f74d30a`](https://github.com/team-ide/teamide/commit/f74d30ab76577e804bbfd582d057ee66e595709c) 终端连接增加临时ANSI 渲染,方便ls等命令,直观看到文件夹或文件等类型的区分,也更美观 - [`0a60720`](https://github.com/team-ide/teamide/commit/0a6072000353b4c6ca1040aebe4943b31e03490a) fix - [`8e22842`](https://github.com/team-ide/teamide/commit/8e228429ff5e17aefd48c2c0e1cff9bea82944f1) 当前 ES 的 like 是用 wildcard query 做的,而 wildcard 不走分词/不做大小写归一,并且默认 大小写敏感。如果 mem_name 是 text 并经过 lowercase 分词(常见),索引里实际 term 可能是 cqtany,所以你用 *CQTany* 匹配不到;但中文(如 秀)没有大小写差异,所以能匹配上。 - [`6e952ad`](https://github.com/team-ide/teamide/commit/6e952ada8852897c1ea4ca7a6add9f31842ab352) 重构like,改为类似mysql的like '%xxxxx%' ### 📊 Changes **11 files changed** (+915 additions, -64 deletions) <details> <summary>View changed files</summary> 📝 `internal/context/create.go` (+3 -1) 📝 `internal/module/module_database/api.go` (+356 -32) 📝 `internal/module/module_elasticsearch/api.go` (+75 -2) ➕ `internal/module/module_elasticsearch/search_like_fix.go` (+245 -0) ➕ `internal/module/module_elasticsearch/search_like_fix_test.go` (+53 -0) 📝 `internal/module/module_id/id.go` (+21 -0) 📝 `internal/module/module_toolbox/api_toolbox.go` (+2 -0) 📝 `internal/module/module_toolbox/toolbox.go` (+39 -8) 📝 `internal/module/module_toolbox/worker.go` (+19 -1) 📝 `pkg/ssh/shell.go` (+19 -18) 📝 `pkg/ssh/terminal_work.go` (+83 -2) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/teamide-team-ide#213
No description provided.