Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
4062834
adding -c / --command parameter to pgcli w/tests
diego-feito-stori Nov 19, 2025
d607e17
adding support for multiples -c / --command parameter to pgcli w/tests
diego-feito-stori Nov 19, 2025
309ffc2
adding support for multiples -c / --command parameter to pgcli w/tests
DiegoDAF Nov 20, 2025
5fb4d38
Add -f/--file option to execute SQL commands from file
DiegoDAF Nov 25, 2025
f59ab57
adding -y / --yes parameter to avoid questions in pgcli w/tests
DiegoDAF Nov 26, 2025
41f8bc8
adding tests for -y / --yes
DiegoDAF Nov 26, 2025
6bb72d7
Enable .pgpass support for SSH tunnel connections
DiegoDAF Nov 27, 2025
e033c1c
adding missing changelog file
DiegoDAF Nov 27, 2025
b2ba3ec
fixing dependencies
DiegoDAF Nov 27, 2025
b9b206b
Downgrade version from 4.3.3 to 4.3.0
diego-feito-stori Nov 27, 2025
57e174e
Merge PR #1530: Add support for multiple -c/--command parameters
DiegoDAF Nov 27, 2025
8a92832
Merge PR #1531: Add -f/--file option to execute SQL from file
DiegoDAF Nov 27, 2025
0dd67b7
Merge PR #1533: Add -y/--yes flag to bypass confirmation prompts
DiegoDAF Nov 27, 2025
5cb0319
Merge PR #1534: Enable .pgpass support for SSH tunnel connections
DiegoDAF Nov 27, 2025
479f55b
Bump version to 4.3.4
DiegoDAF Dec 2, 2025
dde266e
Add --tuples-only (-t) option to print rows without extra output
DiegoDAF Dec 2, 2025
1d30323
Add BDD tests for --tuples-only option
DiegoDAF Dec 2, 2025
24488f4
Fix duplicate step definitions and update version to 4.3.5
DiegoDAF Dec 2, 2025
7833779
Update changelog for --tuples-only feature
DiegoDAF Dec 2, 2025
00a7b66
fix: suppress 'Your call!' message with --yes flag (version 4.3.6)
DiegoDAF Dec 2, 2025
bbca4a1
Merge branch 'fix/yes-suppress-your-call-message' into feature/tuples…
DiegoDAF Dec 2, 2025
e6702e5
feat: implement daily log rotation and /var/log/pgcli location (v4.3.7)
DiegoDAF Dec 4, 2025
f3e6d6d
fix: change log rotation format to pgcli.YYYY-MM-DD.log
DiegoDAF Dec 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,4 @@ venv/
.ropeproject/
uv.lock

pgcli/__init__.py
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ Contributors:
* Jay Knight (jay-knight)
* fbdb
* Charbel Jacquin (charbeljc)
* Diego

Creator:
--------
Expand Down
30 changes: 30 additions & 0 deletions changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,39 @@ Upcoming (TBD)

Features:
---------
* Add support for `tuples-only` option to print rows without extra output.
* Command line option `-t` or `--tuples-only`.
* Without value, defaults to `csv-noheader` format.
* Optionally specify a table format (e.g., `-t minimal`).
* Suppresses status messages (SELECT X) and timing information.
* Similar to psql's `-t` flag, useful for scripting and automation.
* Add support for `init-command` to run when the connection is established.
* Command line option `--init-command`
* Provide `init-command` in the config file
* Support dsn specific init-command in the config file
* Add suggestion when setting the search_path
* Allow per dsn_alias ssh tunnel selection
* Add support for `single-command` to run a SQL command and exit.
* Command line option `-c` or `--command`.
* You can specify multiple times.
* Add support for `file` to execute commands from a file and exit.
* Command line option `-f` or `--file`.
* You can specify multiple times.
* Similar to psql's `-f` option.
* Add support for forcing destructive commands without confirmation.
* Command line option `-y` or `--yes`.
* Skips the destructive command confirmation prompt when enabled.
* Useful for automated scripts and CI/CD pipelines.
* Add hostaddr to handle .pgpass with ssh tunnels

Documentation:
--------------

* Document previously undocumented table formats in config file:
* `csv-noheader` - CSV format without headers
* `tsv_noheader` - TSV format without headers
* `csv-tab-noheader` - Alias for tsv_noheader
* `minimal` - Aligned columns without headers or borders

Internal:
---------
Expand All @@ -18,11 +45,14 @@ Internal:
* Use github trusted publisher for pypi release
* Update dev requirements and replace requirements-dev.txt with pyproject.toml
* Use ruff instead of black
* Implement daily log rotation at midnight with 30-day retention using TimedRotatingFileHandler
* Change default log location to /var/log/pgcli/pgcli.log (with automatic fallback to ~/.config/pgcli/log if no permissions)

Bug fixes:
----------

* Improve display of larger durations when passed as floats
* Fix `--yes` flag to suppress "Your call!" message when auto-confirming destructive commands

4.3.0 (2025-03-22)
==================
Expand Down
2 changes: 1 addition & 1 deletion pgcli/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "4.3.0"
__version__ = "4.3.7"
Loading
Loading