Skip to content

.1194483628904544:90e72ffa24f4e74394b9f2abd3d2fb73_69c346c149518cacc42e908e.69c3471449518cacc42e90b5.69c34713241a2f256906f0d5:Trae CN.T(2026/3/25 10:23:16)#1563

Open
koillinjag-tech wants to merge 1 commit intodbcli:mainfrom
koillinjag-tech:branch1-kimi

Conversation

@koillinjag-tech
Copy link
Copy Markdown

  • Add HistoryFreqTracker for tracking SQL keyword usage frequency
  • Add SmartPGCompleter with history-based completion sorting
  • Add \set_smart_completion command for runtime toggle
  • Store history in ~/.config/pgcli/history_freq.db
  • Add configuration option smart_completion_history (default: False)
  • Add comprehensive unit tests
  • Generate bugfix report documentation

Features:

  • Track SQL keyword usage frequency
  • Prioritize frequently used keywords in completion
  • Runtime enable/disable via \set_smart_completion on/off
  • SQLite backend for persistence
  • Thread-safe implementation

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)

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