1
0
Fork 0
Commit Graph

1257 Commits

Author SHA1 Message Date
Irina Truong 9a53fe859a Possibly fix #1040. (#1042)
Fix #1040
2019-04-28 08:00:40 +02:00
raylu eef0e0d65c Allow application_name to be overridden (#1044)
* Allow application_name to be overridden

* Fixed broken link.

* Default password value is empty str?

* Make pep8 happier.
2019-04-27 21:25:19 -06:00
Nathan Vērzemnieks 4af4e33e31 Allow escape to switch to vi navigation mode (#1039) 2019-04-13 13:22:03 -07:00
Xavier Francisco e0eac14c96 Revert main changes; Filter unwanted params when dsn present 2019-04-09 21:46:20 +01:00
Xavier Francisco 49582ccb7c Fix usage of pgservice 2019-04-08 19:46:29 +01:00
Irina Truong 098a2cf976 Releasing version 2.1.0 2019-04-05 17:26:27 -07:00
Irina Truong 3f0e47d7b3 Ask for password in case of incorrect password. 2019-03-22 16:49:54 +00:00
Irina Truong d25d27846a Fix for https://github.com/dbcli/pgcli/issues/1014. 2019-03-18 03:09:26 +00:00
Amjith Ramanujam 3652134bc5
Merge branch 'master' into system-error 2019-03-16 21:18:21 -07:00
Amjith Ramanujam 83e17e825f Remove the expand_tab option from pgclirc. 2019-03-16 14:09:39 -07:00
Amjith Ramanujam cbd944ffab
Merge branch 'master' into tab-on-line-start 2019-03-16 14:06:24 -07:00
Amjith Ramanujam 9df9c222d0 Remove the unnecessary try/except. 2019-03-16 13:36:32 -07:00
Amjith Ramanujam f4ebcd2383 Access only the required element from the tuple. 2019-03-16 13:34:36 -07:00
Amjith Ramanujam 951cfb28a7 Catch and ignore the system interrupt. 2019-03-15 20:28:40 -07:00
Irina Truong 33dbb602de Fix crash when using --single-connection. 2019-03-04 16:09:12 -08:00
Scott Brenstuhl 1c66dece59 Add reconnect automatically enhancement (#1009)
* Adding reconnect automatically enhancement

* files for pr checklist

* changelog fixes

* setting auto-reconnect to be the default

* fix issue of getting logged queries instead of most recent

* travisci pep8 check issue
2019-02-23 16:37:26 -08:00
ಠ_ಠ bd0aaefdd2 keybinding for dismissing autocompletelist (#1007)
* +added esc key to dismiss the autocomple list

* +added esc key to dismiss the autocomple list
2019-02-12 16:18:32 -08:00
Marcin Cieślak ef8aac61c4 Determine hstore OID from the system view (#992)
Avoid error message on the server side if hstore
extension is not installed in the current database.

Issue: https://github.com/dbcli/pgcli/issues/991
2019-01-21 16:00:25 -08:00
Mikhail Elovskikh f614cef7ed Support multihost connection string (#978)
* Switch to psycopg2 parse_dsn instead of urlparse

* Added wronglink to contributors and updated changelog

* Fix test codestyle

* Support for PGPORT customization in tests

* Support for PGPORT customization in tests

* Refactored PGExecute init and moved short_host generation to object property

* Fix test util codestyle

* Fix local tests run

* Store PGExecute initial params in  _conn_params and added PGExecute.copy method

* Fix codestyle

* Added docstring to PGExecute.copy() method
2019-01-03 14:27:47 -08:00
Irina Truong a7650887bf Releasing version 2.0.2 2019-01-02 16:31:52 -08:00
Irina Truong 0cae7e2036
Remove some functions completions (#982)
Remove extension and private functions from completer.
2019-01-02 16:15:59 -08:00
Irina Truong f7303f6988 pep8. 2018-12-27 15:56:22 -08:00
Irina Truong dfdac52b4d Wrap pgcli completer into ThreadedCompleter. 2018-12-27 15:55:56 -08:00
Irina Truong b634656c21 pep8. 2018-12-03 09:01:32 -08:00
Irina Truong 679d7939bb Time execution separately. 2018-12-01 18:23:50 -08:00
igncampa 7b03f8e204 allow passing -u flag (lowercase) to specify username (#975)
* added -u flag
2018-11-30 15:21:12 -08:00
Irina Truong ca2d96825b Releasing version 2.0.1 2018-11-18 20:26:21 -08:00
Amjith Ramanujam 25a66ecfb3 Fix the StopIteration issue in Python 3.7 (#971)
* Fix the StopIteration issue in Python 3.7
2018-11-18 20:11:15 -08:00
Amjith Ramanujam 923f2d6441 Enable suspend using C-Z. (#970)
* Enable suspend using C-Z.

* Update changelog.
2018-11-17 19:41:34 -08:00
Amjith Ramanujam 945461bfa2
Merge branch 'master' into tab-on-line-start 2018-11-17 19:34:36 -08:00
Amjith Ramanujam ec18ff0141
Merge branch 'master' into bugfix/named-queries-from-config 2018-11-17 11:25:20 -08:00
Amjith Ramanujam 462443a2d1
Merge pull request #961 from DanEEStar/feature/dbname-username-options
Refactor dbname and username options/arguments to match `psql`-behaviour
2018-11-17 11:15:13 -08:00
Dick Marinus 94475e6283 Require prompt_toolkit>=2.0.6. 2018-11-11 13:42:33 -08:00
Daniel Egger b92743368b Bugfix for #938: load named queries from provided config file 2018-10-31 18:46:04 +01:00
Daniel Egger f71a70fc93 Refactor dbname and username options/arguments to match `psql`-behaviour 2018-10-30 23:25:22 +01:00
DanEEStar abb801e4af Set default port in `get_prompt` when none is given, fixes #958 (#959) 2018-10-30 07:28:28 -07:00
Irina Truong fcf0eb022e
Fix for pgcli --list. (#952)
Fix for pgcli --list
2018-10-02 17:10:43 -07:00
Artur Balabanov f897ea466e Merge branch 'master' into tab-on-line-start 2018-10-01 10:25:13 +01:00
Irina Truong ec5131e1da Releasing version 2.0.0 2018-09-29 02:51:58 +00:00
Irina Truong 392491a74d
Cherry-picked prompt-toolkit 2.0 changes. (#930)
* Cherry-picked prompt-toolkit 2.0 changes.

* Increase help timeout.

* Missed one.

* Fixes editor command.

* Expect exact to fix named query error.

* Unicode is non-optional with ptk 2.0.

* Unicode literals all the things (almost).

* PEP8.

* Change how we swap completers.

* By default, bottom toolbar styles are reversed. We don't want that.

* Adapt styles to 2.0.

* The future is now. Switch to ptk 2.0 style names.

* PEP8.

* Flag for enable_open_in_editor.

* add class:prompt to prompt

* Removed workaround for #668. Some renaming.

* use pgcli.completer instead of app.current_buffer.completer

* enable_system_prompt=True like old prompt toolkit

* keep search_ignore_case enabled (was ignore_case)

* fix closing parenthese

* keep marking class:continuation token for continuation

* capture KeyboardInterrupt manually

AbortAction has been removed in Prompt_toolkit 2.0

* replace C-J with enter, add more comments

* reversed ([...]) to [(...)] (oops)

* pep8 fixes

* Does Vi mode have to be applied to session every time?

* (workaround) also enable vi_mode after edit command

* Fixed test errors after rebasing on master.
2018-09-28 14:18:40 -07:00
Irina Truong d3bdb891d3 Releasing version 1.11.0 2018-09-24 16:25:12 -07:00
Max Rothman 172c9cd271 Respect \pset pager on expected behavior
"\pset pager" has three possible values: "always", "on", and "off".
pgcli previously treated all non-"off" values as "always". This change
implements the expected behavior, which is to use the pager when the
output is larger than the terminal height (See \pset pager in
https://www.postgresql.org/docs/9.2/static/app-psql.html). Pgcli adds to
this by also using the pager when the output is wider than the terminal
width.

Fixes #813
2018-09-23 17:02:08 -04:00
Artur Balabanov 7602998c81 On the first line only autocomplete is always triggered, regardless of whether it's empty or not 2018-07-29 09:38:23 +01:00
Artur Balabanov 77170407ad Access the current line directly from the Document instance instead of calculating it manually 2018-07-29 09:35:15 +01:00
Irina Truong 5834259535 Releasing version 1.10.3 2018-07-27 12:06:53 -07:00
Artur Balabanov 3cef794dd4 PEP8 warnings fixed 2018-07-27 18:08:03 +01:00
Artur Balabanov 676b5e6ff6 Add a config option -- expand_tab. If set, \t character will be replaced by 4 spaces when a <Tab> key is pressed on an empty line 2018-07-27 17:07:18 +01:00
Artur Balabanov 2870103d5d Docstring updated for the Tab key binding method 2018-07-27 16:47:15 +01:00
Artur Balabanov 205949a79b Tab press on an empty line is interrupted as a \t character insert 2018-07-27 16:44:38 +01:00
Irina Truong 9063f02256 Fixes keyring = False not honored. 2018-07-26 05:09:23 +00:00
Lele Gaifax 05ec05c4cb Adapt the query used to get functions metadata to PG11
This fixes #919.
2018-07-25 08:13:17 +02:00
Irina Truong 22d184dc6b Change server version query. 2018-07-24 15:14:53 -07:00
Irina Truong e4f02b247e Releasing version 1.10.2 2018-07-23 17:09:57 -07:00
Dick Marinus 868b81aa98 make keyring optional 2018-07-22 07:34:56 +02:00
Irina Truong 7653ea9c1f Print server version as part of welcome message. 2018-07-20 15:47:40 -07:00
Irina Truong 2fa7b1458a Releasing version 1.10.1 2018-07-20 09:08:18 -07:00
Irina Truong 83b2981a0f Fixes #909. 2018-07-19 18:21:33 -07:00
Kenny Do 408c0329ec pass when no supported keyring backend available 2018-07-19 14:11:27 -07:00
Irina Truong 79e4dbcf11 Releasing version 1.10.0 2018-07-14 12:59:10 -07:00
Irina Truong 5491d288fc
Merge pull request #903 from arturbalabanov/render-tabs-with-spaces
Fixes #346: Tab characters are rendered with spaces instead of "^I" when entered in external editor
2018-07-13 13:24:44 -07:00
Amjith Ramanujam 6eedf1b6e3 Catch the ^D keybinding using EOFError exception. 2018-07-10 22:51:38 -07:00
Artur Balabanov 44d4275eae Prettify the code to keep Travis happy :) 2018-07-06 18:02:52 +01:00
Artur Balabanov 87451b3806 A new input processor has been added that renders tab characters as spaces instead of the ugly '^I' 2018-07-06 17:37:43 +01:00
Saif Hakim 80957c59c5 Fix lint, update AUTHORS, and changelog 2018-07-04 01:36:50 -07:00
Saif Hakim 5cdb151999 Avoid reconnect prompt after error if connection is still valid
Instead of whitelisting all errors that do not require reconnecting, we simply
only reconnect if we detect a disconnect has occurred.

psql notably behaves in a similar way: https://git.io/fbxuc#L1461

Fixes #807
2018-07-03 23:56:26 -07:00
Amjith Ramanujam 4c173fd01f Gurad against missing keyring backend. 2018-06-25 13:55:54 -07:00
Irina Truong 10f190a13a Rebase conflict. 2018-06-17 17:21:03 -07:00
Irina Truong a26b8b92a2 Pep8. 2018-06-17 14:34:20 -07:00
Irina Truong 4b06769002 Can't add tuple and list. 2018-06-17 14:21:30 -07:00
Irina Truong aa58fbf028 Non-existent function will raise a ProgrammingError. 2018-06-16 21:49:28 -07:00
Irina Truong 8ee20aa82e Fix for 'only named arguments may follow *expression' 2018-06-16 21:49:28 -07:00
catherinedevlin 74daa23a45 switched view query to imitating psql 2018-06-16 21:47:18 -07:00
catherinedevlin bb8cbac3de Added \ef 2018-06-16 21:46:31 -07:00
catherinedevlin 675e1dbff2 Moved code to pgexecute 2018-06-16 21:46:31 -07:00
Alexandr Korsak da12182609 Fix formatting for --user 2018-06-15 10:52:28 +03:00
Alexandr Korsak 4963e34c3a add compatible --user like psql command 2018-06-15 09:07:32 +03:00
Matthieu Guilbert f13637aa21 Fix unbound local error when destructive_warning is false 2018-06-10 16:36:51 +08:00
Matthieu Guilbert 1a2421892b fix: not enough values to unpack 2018-06-07 00:43:48 +08:00
Irina Truong b8a6dfd357 Ugh. 2018-06-01 14:00:57 -07:00
Irina Truong 9e54a9ef56 Fix for ipython sql connection. Fixes #891. 2018-06-01 08:18:24 -07:00
Dick Marinus 2ce2a87f37 make keyring optional 2018-05-26 11:26:06 +02:00
Amjith Ramanujam 9ae9df624f
Merge branch 'master' into feature/get-last-sql-query 2018-05-18 21:48:21 -07:00
Amjith Ramanujam 0643fd6534
Merge branch 'master' into master 2018-05-17 05:57:46 -07:00
Dan Clark 8fce953a8c ported the desctructive warning from mycli 2018-05-17 05:54:50 -04:00
Amjith Ramanujam 8e12ea5e0f
Merge pull request #873 from cfournie/remember_passwords
Remember prompted passwords using keyring
2018-05-16 17:49:31 -07:00
Rishi Ramraj f520b2ebb2 Add is_special to the \\o command 2018-05-15 11:57:19 -04:00
Rishi Ramraj b44357dc67 Fix typo 2018-05-15 10:54:07 -04:00
Rishi Ramraj 3425766dea Code review fixes 2018-05-15 10:45:36 -04:00
Amjith Ramanujam 5990e55413 Restrict the offer to reconnect. 2018-05-15 10:06:50 -04:00
Rishi Ramraj 07e54fb69f Fix is_special flag 2018-05-15 01:25:33 -04:00
Rishi Ramraj ca63a54ada Add special flag 2018-05-15 00:51:44 -04:00
Rishi Ramraj a49f5bdd0f Add is_special to run return 2018-05-15 00:35:07 -04:00
Rishi Ramraj 54942ce0d7 Remove unnecesssary parameter 2018-05-14 20:37:16 -04:00
Amjith Ramanujam f8757c6f59
Merge pull request #879 from dbcli/pr877
Fix lint complaints.
2018-05-14 17:33:06 -04:00
Amjith Ramanujam d971e49993
Merge pull request #877 from catherinedevlin/keep_callables
Keep callables
2018-05-14 17:32:11 -04:00
Amjith Ramanujam 740d4f1249 Fix lint complaints. 2018-05-14 17:30:52 -04:00
Jason Ribeiro 9014d96526 Add completion for table formats 2018-05-14 16:54:52 -04:00
catherinedevlin dc74a0acd0 Merge remote-tracking branch 'upstream/master' into keep_callables 2018-05-14 16:31:19 -04:00
catherinedevlin 0d00e38b6d prevent losing saved_callables on error 2018-05-14 16:04:31 -04:00
Amjith Ramanujam 7d0f866afb Fix lint complaints. 2018-05-14 14:58:17 -04:00
Jason Ribeiro f836c3a3a4 Disable pager when using \watch 2018-05-14 14:20:37 -04:00
Irina Truong 5eb0fd5ddc
Merge pull request #875 from jrib/quit-help
Add quit commands to completion
2018-05-14 13:04:55 -04:00
Jason Ribeiro 25d148df1e Add quit commands to completion 2018-05-14 12:14:14 -04:00
Chris Fournier 09a43ccd49 Remember prompted passwords using keyring 2018-05-14 11:30:50 -04:00
Dan Clark e105fda516 Actually port the prompt functions 2018-05-14 10:05:38 -04:00
Chris Fournier b2a3a4b63b Encourage users to use SSL 2018-05-14 09:57:24 -04:00
Dan Clark 938826dbe4 Added prompt_utils from mysql 2018-05-14 09:54:57 -04:00
François Pietka 8cd3309b18
Add application name 2018-04-26 14:24:09 +02:00
Irina Truong b308892606 Releasing version 1.9.1 2018-04-04 08:58:06 -07:00
Irina Truong dd0c721ad5 Merged master into branch. 2018-03-31 13:09:23 -07:00
Andrew Kuchling d0e68d0617 #858: fix comment in pgclirc 2018-03-28 16:27:41 -04:00
Andrew Kuchling a91afadccf #858: make \h in prompt return the first part of the hostname; add \H to return whole hostname 2018-03-28 08:06:47 -04:00
fraoustin 344317df34 explicit sample in pgclirc 2018-03-23 23:24:35 +01:00
Баданин Дмитрий ab65d18f56
fix database list option (pgcli -l) 2018-03-22 13:06:06 +03:00
fraoustin 88b12c1e2c move style_factory_output in pgstyle 2018-03-04 11:41:10 +01:00
fraoustin ade6142ef8 add color for table 2018-03-04 11:05:50 +01:00
Irina Truong cde420e271 Releasing version 1.9.0 2018-03-02 15:04:43 -08:00
fraoustin f671d2f922 correction for pep8radius master --docformatter --diff 2018-02-17 22:02:06 +01:00
fraoustin f5eb92bde2 add option list-dsn 2018-02-10 17:00:44 +01:00
Irina Truong 8138ae8e31
Merge pull request #832 from fraoustin/nopager
Nopager
2018-01-27 14:25:29 -08:00
fraoustin b0ca4a9016 add parameter enable_pager with Value True and pep8raidus 2018-01-17 19:57:12 +01:00
fraoustin 0250ab4c39
Update main.py 2018-01-17 12:53:28 +01:00
fraoustin 64a683cae7
Update pgclirc 2018-01-17 12:48:36 +01:00
fraoustin 91ebe135d3
Update main.py 2018-01-17 12:47:43 +01:00
fraoustin 57cc451f06 manage pset pager 2018-01-06 11:58:59 +01:00
Irina Truong cb3cb1bb8c Add a couple missing click option types. 2018-01-05 17:27:51 -08:00
fraoustin 837dc74272 change msg if ValueError 2018-01-03 22:05:45 +01:00
fraoustin f655208654 change command t by T 2018-01-03 21:25:03 +01:00
fraoustin fbe0890b1b add change format 2018-01-03 11:07:04 +01:00
Chris Vaughn cc4854214e correct typo in pgclirc comment 2017-12-23 07:07:01 -06:00
Irina Truong 4153477f8a Releasing version 1.8.2 2017-12-20 21:06:29 -08:00
Bojan Delić 8bd7a7a94f Include username to password prompt. #823
As described in ticket #823, this is useful for matching prompt for
different usernames and auto populating passwords. iTerm2 has password
manager that is capable of doing this, but other terminal managers might
be able to do it as well.
2017-12-20 23:58:53 +01:00
isank e413f0563e ≈Merge branch 'master' of github.com:dbcli/pgcli into 816 2017-12-17 04:38:25 +05:30
Irina Truong df2bb2b997 PEP8. 2017-12-16 14:00:26 -08:00
isank 2c02f56c41 Fixed #816 The --list command line option tries to connect to 'personal' DB 2017-12-16 21:04:10 +05:30
Marcin Sztolcman 7aa8ff8e4b fixed prompt-dsn option description 2017-12-15 08:46:00 +01:00
Marcin Sztolcman 57ee2403b6 fixed description for --prompt-dsn option 2017-12-13 04:46:43 +01:00
Marcin Sztolcman 54f0b7f02c removed setting prompt_dsn from config, just allow for it in cli options 2017-12-11 04:48:24 +01:00
Marcin Sztolcman e4ec94a4c2 typos 2017-12-11 04:24:55 +01:00
Marcin Sztolcman ba4836652e use other prompt when connecting using --dsn parameter 2017-12-11 04:24:43 +01:00
Irina Truong 7a4d9a0792 Fix for #805 (partial). 2017-10-21 11:10:45 -07:00
Amjith Ramanujam 614a42f03f Do NOT escape database names. 2017-10-11 12:58:32 -07:00
Dmitry B 0ccf008cf8 look for config in XDG_CONFIG_HOME first 2017-10-03 22:27:24 +03:00
Irina Truong 915ffb70a7 Releasing version 1.8.1 2017-09-19 12:47:47 -07:00
Dick Marinus d81faefa5f Remove shebang and git execute permission from pgcli/main.py. 2017-09-15 20:46:51 +02:00
Irina Truong 31305e5600 Releasing version 1.8.0 2017-09-14 13:02:11 -07:00
Dick Marinus ca88e62a17 Port auto_vertical feature test from mycli to pgcli 2017-09-05 20:39:13 +02:00
Dick Marinus 223eec9d2c use cursor from psycopg in pgcli 2017-08-21 08:50:28 +02:00
Andrew Speed 82d84ec89f Remove OrderedDict workaround for python < 2.7 2017-08-20 14:46:45 +01:00
Dick Marinus d2ecbde849 Preliminary work for a future change in outputting results that uses less memory 2017-08-18 20:40:16 +02:00
Irina Truong 1e77eab21b Merge pull request #773 from dbcli/fpietka/conninfo
Add \conninfo command
2017-08-13 17:21:42 -07:00
François Pietka 902fe94f3c
Fix psycopg2 error code lookup 2017-08-12 13:03:29 +02:00
François Pietka 5194fdc89f
(lint) Fix indentation 2017-08-12 13:03:29 +02:00
François Pietka 104f159aa9
Handle more option for \c 2017-08-12 13:03:29 +02:00
François Pietka 727a123429
Add \conninfo command 2017-08-12 13:03:28 +02:00
François Pietka 9c0304df1f
Get socket directory if no host provided by psycopg2 2017-08-12 13:03:28 +02:00
François Pietka 60f3a50b5c
Add query to get socket directory 2017-08-12 13:03:28 +02:00
Thomas Roten 70db642c4b Add null_string to config file. 2017-08-09 12:53:42 -05:00
Amjith Ramanujam 887a826415 Merge branch 'master' into koljonen/array_formatting 2017-08-06 21:16:08 -06:00
Amjith Ramanujam 99c9040c3d Merge pull request #771 from dbcli/koljonen/reservered_words
Don't quote identifiers that are non-reserved keywords
2017-08-06 21:14:40 -06:00
Amjith Ramanujam 962f53fbf8 Merge branch 'master' into fpietka/drop-column 2017-08-06 21:08:48 -06:00
Joakim Koljonen 4dc68b846b
Make pep8radius happy
I don't know why pep8radius didn't like this line, and I think its suggested
change would have made the code considerably less legible. So here's some
sort of compromise where pep8radius gets its line break and I get indentation
that at least makes some sense.
2017-08-07 03:43:00 +02:00
Joakim Koljonen a92e052877
Rename unused params to _ 2017-08-07 02:34:39 +02:00
Thomas Roten da9f1975e5 Convert generator to list before looping. 2017-08-06 19:09:16 -05:00
Joakim Koljonen c97f53399f
Move py2/3 str/unicode logic to encodingutils.py 2017-08-07 01:16:56 +02:00
Joakim Koljonen a21c9eb294
Fix for Python 3 compatibility 2017-08-07 00:53:36 +02:00
François Pietka ee29475089
Add COLUMN as possible keyword after DROP 2017-08-07 00:19:07 +02:00
Joakim Koljonen c616a8b422
Improve formatting of array output
Before this change, e.g. `SELECT '{1}'::numeric` would output `[Decimal(1)]`.
Now it instead outputs `{1}`.
2017-08-06 19:30:34 +02:00
Joakim Koljonen b90beeb4d3
Don't quote identifiers that coïncide with non-reserved keywords
Keep track of which keywords are reserved, and quote identifiers
that coïncide with those.
https://www.postgresql.org/docs/10/static/sql-keywords-appendix.html
2017-08-06 09:46:52 +02:00
Joakim Koljonen 9d146f63aa
Don't include args in function suggestions for backslash commands 2017-08-06 08:13:43 +02:00
François Pietka f63081495c
Use psycopg2 to get database details 2017-07-29 16:05:35 +02:00
François Pietka 7baa76f2c1
PEP8 lint 2017-07-27 14:20:13 +02:00
François Pietka a9f4864d73
Use raw strings where needed to avoid backslash ambiguity 2017-07-27 14:08:12 +02:00
Amjith Ramanujam 1301b7ad7b Change the continuation char to empty string. 2017-07-24 10:32:37 -07:00
Amjith Ramanujam 5a8e5d21b6 Merge pull request #677 from dbcli/koljonen/suggest_functions_with_args
Include arguments in function suggestions
2017-07-20 09:48:28 -07:00
Amjith Ramanujam 2c80a8c98f Change the casing default to 'auto'. 2017-07-16 20:26:43 -07:00
Amjith Ramanujam 925341cbce Add fish-style autosuggestion. 2017-07-16 15:20:10 -07:00
Joakim Koljonen a326e54884
Merge branch 'master' into koljonen/suggest_functions_with_args 2017-07-16 12:13:36 +02:00
Irina Truong da48bdd6a4 Releasing version 1.7.0 2017-07-15 20:12:44 -07:00
François Pietka e8e7e41d70
Add option to list databases from command line 2017-07-15 01:18:32 +02:00
François Pietka ce88f56107
Add method to list databases with full information 2017-07-15 01:18:32 +02:00
Joakim Koljonen 534c0de47e
Fix crash bug whenever connecting to a DB that requires a password 2017-07-11 10:55:43 +02:00
Amjith Ramanujam fd5e030243 Merge pull request #744 from dbcli/koljonen/better_insert_star_completion
Better * expansion for inserts
2017-07-09 14:28:53 -07:00
Joakim Koljonen 28a3afc763
Some renames for compatibility with the function-arguments PR 2017-07-08 23:08:11 +02:00
Joakim Koljonen 9479808a75
Try to make linter happy 5 2017-07-07 17:22:21 +02:00
Joakim Koljonen d4396686a1
Try to make linter happy 4 2017-07-07 17:22:21 +02:00
Joakim Koljonen 2341f50034
Try to make linter happy 3 2017-07-07 17:22:20 +02:00
Joakim Koljonen 81ed311963
Try to make linter happy 2 2017-07-07 17:22:19 +02:00
Joakim Koljonen c5eaa77778
Try to make linter happy 2017-07-07 17:22:19 +02:00
Joakim Koljonen f5784746d9
Skip unwanted columns when expanding `INSERT INTO tbl(*`
Skip those that have a default value of some sequence (i.e. serial columns)
and those that have a default value of 'now()'.
2017-07-07 17:22:17 +02:00
Donnell Muse f84d421d46 Added InterfaceError handling for closed connection 2017-07-06 00:58:52 -04:00
Joakim Koljonen fdacd906a6
Some restructuring of get_column_matches() 2017-07-05 19:07:56 +02:00
Joakim Koljonen 2b0ca684d4
Add defaults to column metadata 2017-07-05 17:57:38 +02:00
Thomas Roten d26a1933aa Fix comparison. 2017-06-26 12:09:37 -05:00
Thomas Roten 423eefe0d6 Make 0 index implicit. 2017-06-26 12:07:01 -05:00
Thomas Roten bc80064915 Check content width based on first line of formatted output. 2017-06-26 11:58:17 -05:00
Thomas Roten 45a14530e2 Make align_decimals usage based solely on float_format. 2017-06-26 11:33:45 -05:00
Thomas Roten 7ef74ae3bd Move format_output out of Pgcli class. 2017-06-26 10:10:41 -05:00
Thomas Roten b7c1ba89f0 Move CLI Helper instantiation to format_output method. 2017-06-26 08:59:09 -05:00
Joakim Koljonen 5ef0c0ccea
Suggest function signature after `CREATE FUNCTION` 2017-06-25 12:49:23 +02:00