Skip to content

.1194483628904544:335e5e069c0cc70662fa2b5afa5c39fc_69c346c149518cacc42e908c.69c3470449518cacc42e9092.69c34703688877a3f61a18cf:Trae CN.T(2026/3/25 10:23:00)#1564

Open
koillinjag-tech wants to merge 2 commits intodbcli:mainfrom
koillinjag-tech:branch2-glm

Conversation

@koillinjag-tech
Copy link

  • 新增 history_freq.py: 历史频率管理模块(SQLite存储)
  • 修改 prioritization.py: 集成历史频率功能
  • 修改 pgcompleter.py: 添加配置支持
  • 修改 pgclirc: 添加 smart_completion_freq 配置选项
  • 修改 main.py: 添加 \set 命令支持运行时切换
  • 新增 test_history_freq.py: 完整单元测试
  • 新增 BUG_REPORT.md: 开发记录文档

功能说明:

  • 基于使用频率的智能SQL关键字补全排序
  • 数据存储在 ~/.config/pgcli/history_freq.db
  • 默认关闭,通过 \set smart_completion_freq on 启用

Description

Checklist

  • I've added this contribution to the changelog.rst.
  • I've added my name to the AUTHORS file (or it's already there).
  • I installed pre-commit hooks (pip install pre-commit && pre-commit install).
  • Please squash merge this pull request (uncheck if you'd like us to merge as multiple commits)

koillinjag-tech added 2 commits March 25, 2026 11:40
- 新增 history_freq.py: 历史频率管理模块(SQLite存储)
- 修改 prioritization.py: 集成历史频率功能
- 修改 pgcompleter.py: 添加配置支持
- 修改 pgclirc: 添加 smart_completion_freq 配置选项
- 修改 main.py: 添加 \\set 命令支持运行时切换
- 新增 test_history_freq.py: 完整单元测试
- 新增 BUG_REPORT.md: 开发记录文档

功能说明:
- 基于使用频率的智能SQL关键字补全排序
- 数据存储在 ~/.config/pgcli/history_freq.db
- 默认关闭,通过 \\set smart_completion_freq on 启用
- Add history frequency tracking for SQL keywords
- Store frequency data in ~/.config/pgcli/history_freq.db
- Support runtime toggle via \\set smart_completion_freq on/off
- Default disabled, compatible with existing prompt_toolkit completion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant