1
0
Fork 0
Commit Graph

252 Commits

Author SHA1 Message Date
Amjith Ramanujam 588be27797 Move refresh routines outside the loop. 2015-01-31 13:46:32 -08:00
Amjith Ramanujam c08d4a51e5 Make completions case-insensitive 2015-01-29 13:54:07 -08:00
darikg 13f84bf83e Fix #106 - autocompletion in multiple statements 2015-01-28 18:21:13 -05: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
Amjith Ramanujam 6944ef60f8 Merge pull request #127 from darikg/schema_autocomplete
Make autocomplete schema-aware
2015-01-26 20:26:52 -08:00
Darik Gamble 7d3f276e83 Fix \d special command and add some tests 2015-01-26 08:30:55 -05: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
Amjith Ramanujam 750206c779 Handle unicode for hstore and unknown types. Fixes #134. 2015-01-26 00:19:49 -08:00
Darik Gamble 477dabdbd4 Metadata should be instance variables, not class variables
Class variables make pgcompleter act poorly as a test fixture, since the class can carry state between tests
2015-01-25 16:09:20 -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 9c72e59216 Support connecting to databases with unicode chars. 2015-01-24 00:32:55 -08:00
Amjith Ramanujam d2c79d8240 Remove the custom parse_dsn function. 2015-01-23 22:31:37 -08: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
Daniel Rocco 52b684574e Cast bytea fields to text for output. 2015-01-21 22:50:24 -05:00
Darik Gamble eb66d8b3e0 fix bug where columns from a nonvisible table could contribute suggestions when a a query references an unqualifed, visible table of the same name 2015-01-20 17:06:54 -05:00
Iryna Cherniavska 13f3af72c3 ON keyword now suggests tables and aliases on the right side of equal sign also. 2015-01-19 17:03:44 -08:00
Darik Gamble ab7edd955c fix schema-completion issue: self.schemata is a dataframe, supply self.schemata['schema'] instead 2015-01-19 13:39:32 -05:00
Darik Gamble 77df20f4ca Store escaped nameds in metadata 2015-01-19 13:11:57 -05:00
Darik Gamble 36f810aa79 escape_name and unescape_name should check for empty values before (un)escaping 2015-01-19 12:40:47 -05:00
Darik Gamble 4a71c1f166 dataframe.apply method returns a copy instead of operating in-place 2015-01-19 12:38:55 -05:00
Darik Gamble 35bccedc2f Remove 'public' as a reserved keyword 2015-01-19 12:36:34 -05:00
Amjith Ramanujam 41927cd8d3 Merge branch 'master' into pr127 2015-01-18 22:08:52 -08:00
Amjith Ramanujam 0921992306 Make a set of reserved words to use with escape_words. 2015-01-18 21:51:11 -08:00
Amjith Ramanujam b1cc36db2f Fix a crash when invalid sql is entered. 2015-01-18 20:49:16 -08:00
Darik Gamble ec33aa9d16 add missing extend_schemata method 2015-01-18 19:27:23 -05: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 a1cad195ec Add the LIMIT keyword. Fix #125 2015-01-17 22:51:21 -08:00
Amjith Ramanujam bf8736a6c0 Consume the sql results as a generator. 2015-01-17 22:48:44 -08:00
Iryna Cherniavska c4c61b8ce5 ON keyword suggests either table aliases, or table names. 2015-01-17 22:16:53 -08:00
Amjith Ramanujam 151a01865a Add \timing special command. 2015-01-15 23:41:43 -08:00
Amjith Ramanujam 09a970dddb Performance improvement for expanded output. 2015-01-15 22:54:00 -08:00
Amjith Ramanujam ed9ac79d36 Releasing version 0.13.0 2015-01-14 17:13:45 -08:00
darikg ffeb89e406 fix bug where show_help command failed in python 3 due to iteritems() deprecation 2015-01-14 15:19:23 -05: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 aba749bbf5 Fix the wrong var name in pgspecial. Fix #66 2015-01-13 22:02:33 -08:00
Amjith Ramanujam 5c56855d6f Add -d option and username as argument. Fix #65 2015-01-13 21:53:53 -08:00
Amjith Ramanujam 15a88ea05d Fix the crash when db change fails. Fix #117 2015-01-13 21:07:37 -08:00
Amjith Ramanujam a77c4a5e4e Releasing version 0.12.0 2015-01-13 00:05:27 -08:00
Darik Gamble 29ffe3aae7 print sql magic connection alias when using %pgcli magic 2015-01-12 13:02:22 -05:00
Amjith Ramanujam 6018308a72 Merge branch 'emacs_bindings' 2015-01-12 00:46:07 -08:00
Amjith Ramanujam 5ddaf8f653 Use the default buffer instead of current_buffer. 2015-01-12 00:45:12 -08:00
Amjith Ramanujam afef77a619 Fix the broken auto-complete for quoted names. 2015-01-12 00:36:18 -08:00