1
0
Fork 0
Commit Graph

89 Commits

Author SHA1 Message Date
Amjith Ramanujam 588be27797 Move refresh routines outside the loop. 2015-01-31 13:46:32 -08:00
Amjith Ramanujam 798c398b60 Add table formats and timing to config file. 2015-01-27 23:05:00 -08:00
Amjith Ramanujam c2d539df8a Convert psycopg2 erros to unicode. Fixes #124 2015-01-26 23:07:10 -08:00
Darik Gamble 3abfde4003 detect changes to the search_path and refresh accordingly 2015-01-26 08:05:39 -05:00
Darik Gamble 9ff2aa4854 Delete old refresh_completions method 2015-01-26 07:44:34 -05:00
Darik Gamble 830d1beaa8 Remove pandas dependency by storing database metadata as lists of tuples 2015-01-25 11:39:03 -05:00
Darik Gamble 7e7051fef7 Merge branch 'master' into schema_autocomplete 2015-01-25 11:37:46 -05:00
Amjith Ramanujam e90f541033 Check if cursor is none before checking rowcount. 2015-01-23 21:14:59 -08:00
Darik Gamble 613e92baac Add convenience method PGCli.get_completions, which delegates to PGCli.completer.get_completions 2015-01-23 22:19:07 -05:00
Darik Gamble fc98182477 Move completer construction to PGCli.__init__ and make refresh_completions a method of PGCli 2015-01-23 22:18:40 -05:00
Amjith Ramanujam 41927cd8d3 Merge branch 'master' into pr127 2015-01-18 22:08:52 -08:00
Amjith Ramanujam b1cc36db2f Fix a crash when invalid sql is entered. 2015-01-18 20:49:16 -08:00
Darik Gamble cc6276925f Get schema names with a direct query instead of stripping them from the tables metadata so we can autocomplete schemata without tables in them 2015-01-18 18:27:25 -05:00
Darik Gamble 78288101c2 Make autocomplete schema-aware 2015-01-18 15:53:47 -05:00
Amjith Ramanujam a795c4f200 Confirm before printing a large table. 2015-01-18 00:25:36 -08:00
Amjith Ramanujam bf8736a6c0 Consume the sql results as a generator. 2015-01-17 22:48:44 -08:00
Amjith Ramanujam 151a01865a Add \timing special command. 2015-01-15 23:41:43 -08:00
Amjith Ramanujam ac93600aae Make user arg optional. 2015-01-14 10:07:45 -08:00
darikg 1e263f1a03 don't try to spilt None - fixes AttributeError: 'NoneType' object has no attribute 'split' on special commands like \? 2015-01-14 07:51:16 -05:00
Amjith Ramanujam 5c56855d6f Add -d option and username as argument. Fix #65 2015-01-13 21:53:53 -08:00
darikg 24443cdca7 keep track of whether queries are mutating 2015-01-10 20:58:53 -05:00
Amjith Ramanujam c9f651ba39 Merge pull request #105 from fpietka/master
allows pgcli to connect to specified user's database
2015-01-10 17:05:50 -08:00
Amjith Ramanujam 39a039fb8e Merge pull request #103 from darikg/logging
fix logging bug: log statements outside pgcli.main not logged to file
2015-01-10 16:59:47 -08:00
darikg 89363a15bc fix file logging bug: only log statements from pgcli.main were logged to file. attach file handler to the root pgcli instead of pgcli.main 2015-01-10 19:24:17 -05:00
François Pietka 8d502bf0cc allows pgcli to connect to specified user's database 2015-01-11 01:20:30 +01:00
Ludovic Gasc (GMLudo) be4ecded30 Remove "'OperationalError' object has no attribute 'message'" error message if you need to provide a password on Python3 2015-01-10 15:21:43 +01:00
darikg 7950b8a6ee maintain a history of queries and whether they were successful or not 2015-01-10 00:27:05 -08:00
darikg 56f0da2ea1 refactor most of main into a standalone PGCli class 2015-01-10 00:27:04 -08:00
Amjith Ramanujam 447c54ea74 Merge pull request #89 from macobo/karl-update-keybindings
Support CTRL+arrow shortcuts, bump prompt_toolkit to 0.26
2015-01-09 23:37:40 -08:00
Karl-Aksel Puulmann 6c86c9065b CTRL+C while querying update: explicitly cancel old connection 2015-01-09 19:47:43 +02:00
Karl-Aksel Puulmann 33436b0cf6 Support for cancelling queries 2015-01-09 19:47:43 +02:00
Amjith Ramanujam 9a6292170b Fix the double printing of output. 2015-01-09 01:03:09 -08:00
Amjith Ramanujam 01847b5706 Fix the failing import in Python 3. 2015-01-09 00:24:17 -08:00
Karl-Aksel Puulmann 9632546c4b Do only one query for all columns, instead of len(tables) queries. Should fix #25 2015-01-09 00:16:55 -08:00
Karl-Aksel Puulmann b7f9c00c21 Fix issues pointed out in pull request comments. 2015-01-09 00:14:18 -08:00
Karl-Aksel Puulmann 8307a7e642 Simplistic test 2015-01-09 00:14:18 -08:00
Stuart Quin 5684048255 Move expanded code out, hook up \x special key 2015-01-08 23:38:54 -08:00
Stuart Quin 49ce0d0802 WIP expanded output 2015-01-08 23:38:54 -08:00
Amjith Ramanujam 1464a3396f Merge pull request #83 from qwesda/master
support for table/column names which should be escaped
2015-01-08 22:50:32 -08:00
Amjith Ramanujam f01fea4c4b Merge pull request #42 from darikg/master
Use standard postgres environmental tags
2015-01-08 18:48:30 -08:00
Karl-Aksel Puulmann 0b7e04a161 Update prompt_toolkit version, now supporting CTRL+arrow shortcuts.
There were some incompatibilities with the previous API, outlined in their commit
0d0a5566a8.
2015-01-08 22:18:31 +02:00
Daniel Schwarz 750218cebc fixes need_completion_refresh case-sensitive comparison 2015-01-08 16:56:07 +01:00
Daniel Schwarz 02e1d989c5 Merge branch 'master' of github.com:amjith/pgcli 2015-01-08 16:04:31 +01:00
Daniel Schwarz dc57081aa8 escape column names if they equal keywords or contain special chars 2015-01-08 14:34:55 +01:00
darikg 5b36f2b182 Add comments explaining host defaults and password handling 2015-01-08 07:58:44 -05:00
Amjith Ramanujam 2e4545c3de Fix the issue with bug for displaying multiple tables. 2015-01-07 23:47:55 -08:00
darikg c9968eb0cc Merge remote-tracking branch 'upstream/master' 2015-01-07 18:53:30 -05:00
Darik Gamble baf73d684f behave more like psql from the command line 2015-01-07 16:50:48 -05:00
Amjith Ramanujam 803e460992 Remove pgerror dependency. 2015-01-07 09:15:45 -08:00
Amjith Ramanujam 25425c72c8 Remove an unnecessary str casting. 2015-01-06 22:34:19 -08:00