1
1
mirror of https://github.com/dbcli/pgcli.git synced 2024-10-06 10:17:15 +03:00
Commit Graph

1050 Commits

Author SHA1 Message Date
Darik Gamble
9a7cae6cf5 Expand more join tests to check compound statements 2015-10-03 14:10:51 -04:00
Darik Gamble
ee0995ceed Fix suggestions in compound join clauses
Previously, this worked correctly, suggesting columns etc. from `a`
`SELECT * FROM abc a JOIN def d ON a.`

But this suggested only keywords:
`SELECT * FROM abc a JOIN def d ON a.id = d.id AND a.`
2015-10-03 14:04:00 -04:00
Darik Gamble
38f5e875ef Add missing test assertion 2015-10-03 10:01:06 -04:00
Darik Gamble
fc25e576eb Delete outdated comment 2015-10-03 09:59:13 -04:00
Darik Gamble
2d7101af3b Use __getitem__ instead of getattr for readability 2015-10-03 09:59:02 -04:00
darikg
517e20224e Merge pull request #369 from dbcli/stuartquin/expanded-requires-headers
Only show expanded layout if valid list of headers provided
2015-10-01 08:18:14 -04:00
Stuart Quin
f944bfe0f5 Only show expanded layout if valid list of headers provided 2015-09-29 20:30:04 +01:00
Darik Gamble
62b2962b63 Suggest fields from functions used as tables 2015-09-29 09:07:20 -04:00
Darik Gamble
07030e20d2 Move FunctionMetadata definition into its own package 2015-09-29 09:07:20 -04:00
Darik Gamble
a0266de192 Extract functions in the FROM clause as tables 2015-09-29 08:54:49 -04:00
Darik Gamble
93615f60b2 extract_tables returns namedtuples instead of bare tuples 2015-09-29 08:54:49 -04:00
Darik Gamble
125faa55d3 Rename FunctionMetadata field result to return_type 2015-09-29 08:54:33 -04:00
Amjith Ramanujam
9f2fced17b Merge pull request #367 from dbcli/j-bennet/pgspecial-merge-cleanup
Removed files left over from separating pgspecial.
2015-09-28 22:07:11 -07:00
Iryna Cherniavska
95b7276db4 Removed files left over from separating pgspecial. 2015-09-28 13:51:38 -07:00
Amjith Ramanujam
981f3aadc7 Merge pull request #363 from dbcli/j-bennet/extract-pgspecial
Using pgspecial as a separate module.
2015-09-27 22:38:51 -07:00
Amjith Ramanujam
878112c4b2 Import content_exceeds_width function from pgspecial. 2015-09-27 22:36:21 -07:00
Iryna Cherniavska
68123b6fac Upped pgspecial req to 1.1.0 with \x auto included. 2015-09-26 17:51:51 -07:00
Iryna Cherniavska
2020e7204d Using pgspecial as a separate module. Warning: this branch will not build. 2015-09-26 17:51:51 -07:00
Amjith Ramanujam
1be884e83e Merge pull request #364 from dbcli/j-bennet/release-script-update
Updated release script with a --dry-run and --confirm-steps option.
2015-09-25 20:35:13 -07:00
Iryna Cherniavska
ded45c4dd9 Updated release script with a --dry-run and --confirm-steps option. 2015-09-25 10:12:56 -07:00
Amjith Ramanujam
764f69a47b Merge pull request #361 from dbcli/darikg/suggest-functions-as-tables
Suggest functions as tables
2015-09-24 22:35:40 -07:00
darikg
6166291c3e Merge pull request #356 from dbcli/amjith/new-config-file
Move config file to ~/.config/pgcli
2015-09-23 22:51:55 -04:00
Darik Gamble
a1785a8aaa Uniquify function names before suggesting them 2015-09-23 14:09:38 -04:00
Darik Gamble
169eb3ff58 Suggest set-returning functions as tables 2015-09-23 14:09:38 -04:00
Darik Gamble
2e9dce513b pgexecute returns additional function metadata 2015-09-23 14:09:37 -04:00
Amjith Ramanujam
e08c54dafb Merge pull request #359 from stuartquin/feature/auto-expand
Issue #315 Add support for \x auto
2015-09-23 09:21:16 -07:00
Stuart Quin
34a665cb29 Use cli for terminal width, explain magic numbers 2015-09-23 15:26:34 +01:00
Stuart Quin
8b7fa42c7c Remove any whitespace from values 2015-09-23 09:14:24 +01:00
Stuart Quin
f013e549d0 Support for \x on and \x off 2015-09-23 07:58:56 +01:00
Amjith Ramanujam
54f53b9843 Create missing config directory in windows/unix. 2015-09-22 22:05:03 -07:00
Amjith Ramanujam
c9b86b2255 Merge pull request #357 from dbcli/darikg/suggest-all-functions
Don't hide functions from pg_catalog
2015-09-22 21:29:14 -07:00
Amjith Ramanujam
0f69f8cd23 Merge pull request #360 from johshoff/complete_concurrently
Add CONCURRENTLY to keyword completion
2015-09-22 21:22:28 -07:00
Johannes Hoff
90d7ede202 Add CONCURRENTLY to keyword completion
See e.g. http://www.postgresql.org/docs/9.4/static/sql-createindex.html

Fixes #358
2015-09-22 17:32:10 -07:00
Stuart Quin
687a805481 Issue #315 Add support for \x auto 2015-09-22 22:21:02 +01:00
Darik Gamble
431ba8f695 Don't hide functions from pg_catalog 2015-09-22 13:00:35 -04:00
Amjith Ramanujam
56efde5364 Automatic migration of config file. 2015-09-20 15:01:15 -07:00
inkn
bedc8225f0 change os.mkdir to os.makedirs in main.py 2015-09-20 15:00:21 -07:00
inkn
674443e89c fix mkdir problem 2015-09-20 15:00:20 -07:00
inkn
0e1ea3b0ed if pgcli dir not exists, create it 2015-09-20 15:00:20 -07:00
inkn
c375fe36c1 change default dir of config, log & history 2015-09-20 15:00:20 -07:00
inkn
cda709f02c let pgcli load config from .config/pgcli/config, if not exists, load from .pgclirc 2015-09-20 15:00:20 -07:00
Amjith Ramanujam
d6897a7fdf Merge pull request #352 from TamasNo1/referenced_table_param_order
"Referenced by" formatting fix
2015-09-16 07:52:17 -07:00
TamasNo1
04a444b952 Same thing with less code change 2015-09-15 23:12:34 +01:00
TamasNo1
0bf9377782 Leave behave.ini alone!! 2015-09-15 22:10:55 +01:00
TamasNo1
450efeed8b Sort out referenced table param ordering 2015-09-15 22:08:47 +01:00
Amjith Ramanujam
fe6752d1f2 Merge pull request #350 from dbcli/j-bennet/improve-behave-output
When behave fails, it prints out expected and actual output.
2015-09-13 23:34:26 -07:00
Iryna Cherniavska
72ea4edcec Strip color codes out of behave actual output. 2015-09-13 11:21:13 -07:00
Iryna Cherniavska
870b613f6f When behave fails, it prints out expected and actual output. 2015-09-13 10:19:25 -07:00
Amjith Ramanujam
60a8d1b9bf Merge pull request #345 from dbcli/amjith/completion-refresh-background
Perform auto-completion refresh in background.
2015-09-12 15:02:16 -07:00
Amjith Ramanujam
5f522b61e1 Merge branch 'amjith/completion-refresh-background' of github.com:dbcli/pgcli into amjith/completion-refresh-background 2015-09-12 14:56:53 -07:00