1
0
Fork 0
Commit Graph

2314 Commits

Author SHA1 Message Date
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
Amjith Ramanujam 366c01bbb9
Merge pull request #1327 from dbcli/j-bennet/update-readme-release
Improve release instructions
2022-03-30 16:54:46 -07:00
Irina Truong 5ee4f89a3b Explicitly point to release guide. 2022-03-30 16:43:31 -07:00
Irina Truong a878d2a4ba Releasing version 3.4.1 2022-03-19 14:01:43 -07:00
Irina Truong b1d0dd16d5
Changelog update to release 3.4.1. (#1325) 2022-03-19 13:59:32 -07:00
Andrii Oriekhov 4f151b07e4
add GitHub URL for PyPi (#1322) 2022-03-19 13:48:46 -07:00
Amjith Ramanujam eb6b98367b Add netlify link. 2022-03-14 09:52:26 -07:00
Amjith Ramanujam ac1d3132cc
Merge pull request #1323 from dbcli/j-bennet/ukraine
Ukraine.
2022-03-09 15:22:28 -08:00
Irina Truong 6884c298e6 Ukraine. 2022-03-09 15:13:00 -08:00
Amjith Ramanujam 43263a90d2
Merge pull request #1321 from dbcli/j-bennet/1320-redshift-status-rows
Add rowcount to status returned from redshift.
2022-03-01 20:28:47 -08:00
Irina Truong f0ab01c117 Changelog. 2022-03-01 20:19:51 -08:00
Irina Truong 00bed0bdad Black. 2022-03-01 20:15:05 -08:00
Irina Truong 2eef64c8ce Add rowcount to status returned from redshift. 2022-03-01 20:02:31 -08:00
Irina Truong 7423f9d239
Bump pgspecial. (#1319) 2022-02-28 13:51:56 -08:00
Daniele Varrazzo 25eb9f541b
Add some comments about porting from psycopg 2 to 3 (#1318) 2022-02-22 09:02:16 -08:00