- clean errors: Use lipgloss for error formatting and styling, adding custom error packages (#96).
- XDG_CONFIG_HOME support: Respect
XDG_CONFIG_HOMEfor config path resolution (#94). - Double ESC to clear input: Added the ability to clear the input by pressing ESC twice (#91).
- Double Ctrl+C to quit: Added the ability to quit the CLI by pressing Ctrl+C twice (#95).
- Context Aware Autocompletion: pgxcli now provides context-aware autocompletion for SQL queries, including table names, column names, and SQL keywords.
- meta command autocompletion: Added autocompletion for meta commands.
- Text clamping: Added text clamping for long query inputs to prevent rendering issues.
- Fixed error on no password: Resolved password wrong message when no password is enter by user.
- Docker and AUR packages: Added Dockerfile for containerized usage and Arch User Repository (AUR) package for Arch Linux users.
- Fix json and time rendering: Resolved issues with JSON and time type rendering in tables.
- Removed custom results Removed the custom results and switch to the database/Rows interface for scalability and maintainability, helps to supports future features like streaming results and exporting results.
- Modernized UI: Completely redesigned REPL interface with styles and better visual hierarchy.
- Orca Banner: Colorful ASCII orca banner with gradient styling on startup.
- Report Issue link: Clickable link in the status bar to report issues on GitHub and banner.
- Loading Spinner: Visual spinner indicator that displays during query execution.
- Version update: Updated version string.
- fix interactive page: fix the interactive page to show only form when width is lesser.
- UI Component Architecture: Extracted child components (Input, Status, Spinner) into separate modules for better maintainability.
- Style Management: Separated style definitions into dedicated source files for cleaner organization.
- Query Cancellation: Press
Ctrl+Cduring a running query to cancel it immediately via PostgreSQL's out-of-band cancel signal.
- hardcoded style: Removed the hardcoded "monokai" style from the syntax highlighter.
- External Editor Support: Launch your favorite editor with
Ctrl+Eto write complex queries. - Standard PostgreSQL Environment Variables: Support for
PGHOST,PGPORT, andPGDATABASEfor easier connection management. - Modernized UI: Refreshed REPL interface.
- Dialer Timeout: Added timeout support for database connections to improve responsiveness on network issues.
- Error Colorization: Improved error reporting with colorized output for better readability.
- Secure Password Input: Passwords are no longer echoed to the terminal during input.
- Improved Password Retry Flow: Added clear error messaging and retry prompts for incorrect passwords.
- ParsePrompt Optimization: Refactored prompt parsing to use a single-pass construction, significantly reducing memory allocations.
- Keyword Management: Migrated PostgreSQL keywords to the
completermodule to support future context-aware completion.
The first release of pgxcli, a command-line interface for PostgreSQL inspired by pgcli, with a focus on performance and extensibility.
- Syntax-aware SQL splitting via jackc's sqlsplit
- JSONL-based history system
- configurable syntax highlighting
- Support for multiple table formats
- Linux packages: deb, rpm, apk, archlinux
- Windows MSI installer