1
0
Fork 0
Commit Graph

2328 Commits

Author SHA1 Message Date
Damien Baty d8eb8b5b82 Apply black (version 23.1.0) 2023-03-18 14:00:38 +01:00
Damien Baty 1c071770bb Remove leftovers of Python 2 support 2023-03-18 10:22:12 +01:00
Amjith Ramanujam 5e34e0b557
Merge pull request #1397 from dbaty/dbaty/require_transaction_for_destructive_statement
feature: Add config option to require a transaction for destructive statements
2023-03-17 19:05:10 -07:00
Damien Baty a93442aed7 lint: Remove unused variables and imported functions 2023-03-08 09:42:43 +01:00
Damien Baty f4dc796941 Add config option to require a transaction for destructive statements
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-03-08 09:42:43 +01:00
Andy Schoenberger 8ef5392fd1
fix explain output when running with auto-vertical-output or max_width (#1396) 2023-02-27 15:20:59 -08:00
Andy Schoenberger 0a502accfc
add comment to pgclirc pager section on default LESS (#1395) 2023-02-27 14:14:48 -08:00
Andy Schoenberger 141873f86d
Add config option to always run with a single connection (#1386)
Co-authored-by: Irina Truong <i.chernyavska@gmail.com>
2023-01-03 13:52:31 -08:00
Amjith Ramanujam 81b0431d80
Merge pull request #1390 from dbcli/j-bennet/1373-fix-dsn
Fix connecting with dsn.
2023-01-02 15:15:21 -08:00
Irina Truong 7a4086c7c0 Python -m py.test doesn't work anymore. 2023-01-02 15:05:35 -08:00
Irina Truong 4e7bd7cc7a Changelog. 2023-01-02 14:53:08 -08:00
Irina Truong 87d9b2da77 Fix connecting with dsn. 2023-01-02 14:10:29 -08:00
Andy Schoenberger 2db54f14aa
fix psycopg.sql.Identifier in \ev handling (#1384) 2022-11-21 16:10:13 -08:00
Andy Schoenberger d6ca4c3464
Add config option to not automatically restart connection on destructive warning abort; defaults to not restarting. (#1379) 2022-11-17 20:13:05 -08:00
Dick Marinus fa054a5546
add python 3.11 support (#1356)
* add python 3.11 support

* use beta version

* Python 11 is available.

Co-authored-by: Irina Truong <i.chernyavska@gmail.com>
2022-11-11 10:31:41 -08:00
Andy Schoenberger 431c256567
Add config option to not automatically retry connections with operational errors (#1380) 2022-11-11 09:36:41 -08:00
lgtm-com[bot] 2cb6a28f39
Add CodeQL workflow for GitHub code scanning (#1381)
Co-authored-by: LGTM Migrator <lgtm-migrator@users.noreply.github.com>
2022-11-11 09:17:31 -08:00
Anna Glasgall 285e62559e
magic: use pgcli.connect_uri instead of connect (#1375)
This makes %pgcli work even if you use non-password (e.g. TLS cert)
authentication
2022-10-27 17:40:19 -07:00
Rodrigo Neri (Rigo) 1726ff5397
Changed destructive_warning to take a list of destructive commands (#1328)
* 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-10-13 14:42:22 -07:00
Irina Truong c280f8e398 Releasing version 3.5.0 2022-09-15 15:28:43 -07:00
Irina Truong 7a9277be99
Changelog update to release 3.5.0. (#1369) 2022-09-15 15:23:53 -07:00
astroshot c0e1081405
Feature: Add new formatter to export data to sql like mycli (#1366)
* 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-14 17:41:40 -07:00
Amjith Ramanujam 2f88df95ce
Merge pull request #1367 from dbcli/j-bennet/1360-esc-enter-safe-multiline-mode
Esc + Enter should sumbit the query in safe multiline mode.
2022-09-14 15:24:11 -07:00
Irina Truong 746c1c3455 Changelog. 2022-09-14 15:01:09 -07:00
Irina Truong 73d84eea28 Black. 2022-09-14 14:59:33 -07:00
Irina Truong d6b3472db0 Esc + Enter should sumbit the query in safe multiline mode. 2022-09-14 14:59:33 -07:00
Amjith Ramanujam 4a853e7df4
Merge pull request #1368 from h3xx/fix-dead-link
Fix dead link
2022-09-14 14:06:30 -07:00
Dan Church 385ec87657
Fix dead link 2022-09-14 15:46:51 -05:00
Amjith Ramanujam abc03c509f
Merge pull request #1341 from dbcli/fix-csv-status
Show status in csv format.
2022-09-02 13:57:11 -07:00
Amjith Ramanujam f858c4d569
Merge pull request #1364 from ERYoung11/improve_windows_dev
Small developer improvements for Windows-based devs.
2022-09-01 18:23:35 -07:00
Eric Young 647dd44ac6 reformat of setup.py 2022-09-01 11:55:44 -05:00
Eric Young 79df61f674 Small developer improvements for Windows-based devs. 2022-09-01 10:32:36 -05:00
Amjith Ramanujam 94df104d7d
Merge pull request #1363 from ERYoung11/fix_comments_plus_special
Fix comments plus special - Issue #1362
2022-08-31 20:01:38 -07:00
ERYoung11 c93b15e98f oy, updated the issue. 2022-08-31 21:51:09 -05:00
ERYoung11 2850c83310 black'd the code. 2022-08-31 21:48:06 -05:00
ERYoung11 f5669e756b Updated changelog.rst. 2022-08-31 21:46:26 -05:00
ERYoung11 7a022a5f74 Removed unused re 2022-08-31 21:44:27 -05:00
ERYoung11 5aa5426045 Merge branch 'fix_comments_plus_special' of https://github.com/ERYoung11/pgcli into fix_comments_plus_special 2022-08-31 21:41:42 -05:00
ERYoung11 f7b1621e34 fixed comments with special see Issue #1362 2022-08-31 21:41:11 -05:00
ERYoung11 1c4b2a414c fixed comments with special see Issue #1336 2022-08-31 21:39:24 -05:00
Amjith Ramanujam 318cdb94f0 Fix typo. 2022-06-21 19:22:04 -10:00
Amjith Ramanujam 0f21f86838
Merge pull request #1347 from dbcli/j-bennet/1338-keyring-error
Fix exception when getting password from keyring
2022-06-14 11:28:16 -07:00
Irina Truong f04ffae12f Add test. 2022-06-10 11:26:53 -07:00
Irina Truong 165818bee3 More generic try/catch when dealing with keyring. 2022-06-10 10:27:54 -07:00
Kian-Meng Ang d608ffe7c7
Fix typos (#1345)
Co-authored-by: Irina Truong <i.chernyavska@gmail.com>
2022-06-08 11:38:29 -07:00
Irina Truong 18071754bc
Port to psycopg3 (#1324)
* 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-06-06 11:20:48 -07:00
Amjith Ramanujam 4485dcc9b0
Merge branch 'main' into fix-csv-status 2022-05-22 20:44:35 -07:00
Amjith Ramanujam dd365f960e Update changelog. 2022-05-22 20:43:36 -07:00
Amjith Ramanujam a0980e7241 Show status in csv format. 2022-05-22 20:41:27 -07:00
Daniel Kukula 372da81ec4
add explain visualizer (#1279)
* add explain visualizer

* format files

* remove humanize dependency

* disable by default

* add explain visualizer

* run black
2022-04-03 19:20:02 -07:00