summaryrefslogtreecommitdiffstats
path: root/changelog.rst
AgeCommit message (Collapse)Author
2023-11-08Fix changelog date (#1438)Hollis Wu
* Fix changelog date * Add my name to authors
2023-10-30Releasing version 4.0.1v4.0.1Irina Truong
2023-10-30Release the pendulum unbump. (#1435)Irina Truong
2023-10-29downgrade pendulum to released version (#1434)Dick Marinus
* downgrade pendulum to released version * install beta version of pendulum for 3.12
2023-10-27Update changelog before release. (#1432)Irina Truong
2023-10-18confirm_destructive_query: Use confirm rather than prompt (#1410)Sharon Yogev
* confirm_destructive_query: Use confirm rather than prompt * Fix tests
2023-10-12fixed #1403, improved comment handling (#1404)ERYoung11
* fixed #1403, improved comment handling * black + hooks + changelog --------- Co-authored-by: Irina Truong <i.chernyavska@gmail.com>
2023-10-11Drop python 3.7, add 3.12 (#1426)Irina Truong
* Fix deprecation. * Drop python 3.7 and add 3.12. * Bump pendulum. * Changelog. * Update gh actions. * See if things pass without this scenario. * Skip failing scenarios in 3.12.
2023-10-06Allow defining a json file with preferred aliases (#1382)Rob Berry
* fix psycopg.sql.Identifier in \ev handling (#1384) * Allow defining a json file with preferred aliases At $WORK we have a lot of tables with names like `foo_noun_verb` or `foo_noun_related-noun_verb` and so while the default aliasing is very helpful for shortening unwieldy names we do end up with lots of aliases like `LEFT JOIN fnv on fnv2.id = fnv.fnv2_id` This change will allow defining a json file of preferred aliases ``` > cat ~/.config/pgcli/aliases.json { "foo_user": "user", "foo_user_group": "user_group" } ``` so the alias suggestion for `SELECT * FROM foo_user` will be `SELECT * FROM foo_user AS user` instead of the default `SELECT * FROM foo_user AS fu` * When cannot open or parse alias_map_file raise error Raise a (hopefully) helpful exception when the alias_map_file cannot be parsed or does not exist * Add tests for load_alias_map_file * Add tests for generate_alias * Update AUTHORS file * Remove comment. Discussed this on the PR with a project maintainer --------- Co-authored-by: Andy Schoenberger <akschoenberger@gmail.com> Co-authored-by: Rob B <rob@example.com> Co-authored-by: Irina Truong <i.chernyavska@gmail.com>
2023-10-06Added \echo & \qecho for Issue #1335 (#1371)ERYoung11
* Added \echo & \qecho for Issue #1335 * black + changelog updates * trying to re-kick build process
2023-09-26Ask for confirmation to quit cli if a transaction is ongoing. (#1400)Damien Baty
If user tries to quit the cli while a transaction is ongoing (i.e. begun, but not committed or rolled back yet), pgcli now asks for a confirmation. The user can choose to commit, rollback or cancel the exit. If the user chooses to commit or rollback, we exit only if the commit/rollback succeeds. Fixes #1071.
2023-09-12For Python >= 3.11 directly use packaging to compare package versions (#1416)blag
* For Python >= 3.11 directly use packaging to compare package versions * Improve prompt-toolkit check to test for feature explicitly
2023-06-23Fix sql-insert format emits NULL as 'None' (#1409)astroshot
* Sub: Fix issue #1408 Body: 1. Fix issue #1408 sql-insert format emits NULL as 'None'; 2. Fix DUAL displays as ""DUAL""; ==== End ==== * Sub: Update changelog.rst Body: ==== End ==== * Sub: Optimize if logic Body: ==== End ====
2023-03-08Add config option to require a transaction for destructive statementsDamien Baty
When this option is on, any statement that is deemed destructive (through the use of the `destructive_warning` config option) will not be executed unless a transaction has been started.
2023-02-27fix explain output when running with auto-vertical-output or max_width (#1396)Andy Schoenberger
2023-02-27add comment to pgclirc pager section on default LESS (#1395)Andy Schoenberger
2023-01-03Add config option to always run with a single connection (#1386)Andy Schoenberger
Co-authored-by: Irina Truong <i.chernyavska@gmail.com>
2023-01-02Changelog.Irina Truong
2022-11-21fix psycopg.sql.Identifier in \ev handling (#1384)Andy Schoenberger
2022-11-17Add config option to not automatically restart connection on destructive ↵Andy Schoenberger
warning abort; defaults to not restarting. (#1379)
2022-11-11Add config option to not automatically retry connections with operational ↵Andy Schoenberger
errors (#1380)
2022-10-27magic: use pgcli.connect_uri instead of connect (#1375)Anna Glasgall
This makes %pgcli work even if you use non-password (e.g. TLS cert) authentication
2022-10-13Changed destructive_warning to take a list of destructive commands (#1328)Rodrigo Neri (Rigo)
* Changed destructive_warning to take a list of destructive commands and added the dsn_alias as part of the destructive command warning * Updated parse_destructive_warning to handle None * Reverted auto formatted change to AUTHORS * Reverted auto formatted change to AUTHORS
2022-09-15Changelog update to release 3.5.0. (#1369)Irina Truong
2022-09-14Feature: Add new formatter to export data to sql like mycli (#1366)astroshot
* Sub: Add new formatter to export data to sql like mycli Body: New formatter is added, we can export query result to sql insertion like mycli ==== End ==== * Sub: Install black and reformat code Body: ==== End ==== * Sub: Add unit tests for new formatter Body: ==== End ==== * Sub: Add new formatter to pgclirc
2022-09-14Changelog.Irina Truong
2022-09-02Merge pull request #1341 from dbcli/fix-csv-statusAmjith Ramanujam
Show status in csv format.
2022-09-01Small developer improvements for Windows-based devs.Eric Young
2022-08-31Updated changelog.rst.ERYoung11
2022-06-21Fix typo.Amjith Ramanujam
2022-06-10More generic try/catch when dealing with keyring.Irina Truong
2022-06-08Fix typos (#1345)Kian-Meng Ang
Co-authored-by: Irina Truong <i.chernyavska@gmail.com>
2022-06-06Port to psycopg3 (#1324)Irina Truong
* WIP. * Add some comments about porting from psycopg 2 to 3 (#1318) * WIP * Disable _set_wait_callback() * TransactionStatus. * First working query. * More pg3 changes. * test_pgexecute still fails. * Fix bytea support. * Fix json and enum unicode. * Get unit tests to pass. * Behave tests still break, WIP. * Prompt seems to be displayed fine, why don't the tests see the whitespace? * Python version. * Fix test. * Black. * Added black to dev reqs. * nbu link for donations. * Use psycopg.sql to format statement. * Special case for show help in pgbouncer. * Fix test. * Added integration test. * Install pgbouncer in ci. * Fix integration test. * Remove tmate session. * Revert commenting out python versions. * Pin pgspecial to >=2. * Changelog. Co-authored-by: Daniele Varrazzo <daniele.varrazzo@gmail.com> Co-authored-by: Amjith Ramanujam <amjith.r@gmail.com>
2022-05-22Merge branch 'main' into fix-csv-statusAmjith Ramanujam
2022-05-22Update changelog.Amjith Ramanujam
2022-04-03add explain visualizer (#1279)Daniel Kukula
* add explain visualizer * format files * remove humanize dependency * disable by default * add explain visualizer * run black
2022-03-19Changelog update to release 3.4.1. (#1325)Irina Truong
2022-03-01Changelog.Irina Truong
2022-02-21Prepare to release 3.4.0. (#1315)Irina Truong
* Prepare to release 3.4.0. * Add the TBD section.
2022-02-18Add SSH tunnel support (#1301)Bruno Inec
* Add initial sshtunnel support * Force CI to rerun. * Fix unit test for 3.6. * Black. Co-authored-by: Irina Truong <i.chernyavska@gmail.com>
2022-01-18Update changelog.Amjith Ramanujam
2022-01-18Upgrade cli_helpers to workaround the Pygments regression. (#1310)Amjith Ramanujam
2022-01-13Fix the changelog format again.Amjith Ramanujam
2022-01-13Fix the changelog formatAmjith Ramanujam
2022-01-13Update changelog.Amjith Ramanujam
2022-01-11Update changelog for 3.3.0Amjith Ramanujam
2021-09-30Re-run last query with bare `\watch` (#1283)Saif Hakim
* Re-run last query with bare `\watch` * add test * clean up post test refactor * lint * rerun tests
2021-09-03Add setting in config to control truncating field values. (#1285)Irina Truong
* Add setting in config to truncate field value. * Black. * Changelog. * Fix tests.
2021-08-23Update changelog for 3.2.0 release.Amjith Ramanujam
2021-05-21Another attempt to fix pgbouncer error (1093.) (#1097)Irina Truong
* Another attempt to fix pgbouncer error (1093.) * Fixes for various pgbouncer problems. * different approach with custom cursor. * Fix rebase. * Missed this. * Fix completion refresher test. * Black. * Unused import. * Changelog. * Fix race condition in test. * Switch from is_pgbouncer to more generic is_virtual_database, and duck-type it. Add very dumb unit test for virtual cursor. * Remove debugger code.