1
0
Fork 0
Commit Graph

539 Commits

Author SHA1 Message Date
Dhaivat Pandit b8d5295382 Packaging: first cut of working deb and rpm build
* to build deb & rpm simply run
        ```
        version=<se.mv.er> vagrant provision
        ```
      vagrant shell provisioner will run the inline script and generate
      a deb and an rpm file in the local directory. This is achieved by
      multivm Vagrantfile one for centos and one for debian
    * To install the generated deb - run sudo dpkg -i
    * /pgcli/pgcli_<se.mv.er>.deb (then sudo apt-get install -f if deps
      are missing on a clean debian install)
    * To install generated rpm - sudo yum install path-to-rpm
    * package will be installed under /usr/share/pgcli
    * script pgcli will be a symlink in /usr/local/bin/pgcli ->
      /usr/share/pgcli/bin/pgcli (with right shebang line
      #!/usr/share/pgcli/bin/python)
2015-04-11 14:42:18 -07:00
Amjith Ramanujam 4161f66cca Merge pull request #198 from drocco007/master
Handle a ',' entered before any completions gracefully
2015-04-11 12:28:41 -04:00
Amjith Ramanujam d7b45799c0 Update README to include mysql-cli. 2015-04-11 12:26:25 -04:00
Daniel Rocco e85116d846 Handle a ',' entered before any completions gracefully
Fixes #197
2015-04-11 09:55:34 -04:00
Amjith Ramanujam 659ea22f37 Merge pull request #194 from xalley/master
Fix the checking to commands '\c' or 'use'
2015-04-09 10:12:47 -04:00
xalley 221e4d2ce1 Add a check for `command == '\connect'` 2015-04-09 21:41:30 +08:00
xalley 13b94869da Fix the checking to commands '\c' or 'use'
pgcli/pgexecute.py: split and then check but not use startswith
2015-04-09 17:14:26 +08:00
Amjith Ramanujam 03a8730a6e Merge pull request #191 from davidcelis/patch-1
Fix typo
2015-04-07 13:42:12 -07:00
David Celis c8ffc0f587 Fix typo
A minor nitpick: since "goodbye" is one word, "bye" shouldn't be capitalized.
But otherwise, this is a huge improvement over `psql`!
2015-04-07 13:42:25 -04:00
Amjith Ramanujam 0a916e313d Update changelog. 2015-04-05 17:28:47 -07:00
Amjith Ramanujam 9ea8cadacc Merge pull request #187 from darikg/views
Suggest view names
2015-04-05 17:24:00 -07:00
Amjith Ramanujam 08decb0257 Merge pull request #186 from xalley/master
display width character string with wcwidth
2015-04-05 14:30:28 -07:00
Darik Gamble 05dac16040 suggest view names 2015-04-05 16:38:04 -04:00
Darik Gamble d2c67c1671 store view metadata in pgcompleter (not used yet) 2015-04-05 16:38:03 -04:00
Darik Gamble d437f0cabf pgexecute supports returning view metadata
generalize tables() to _relations(relkind_filter), and add convenience methods tables() and views() which simply call _relations() with the appropriate relkind_filter value

similarly, generatize columns() to _columns(relkind_filter), and add convenience methods table_columns() and view_columns()
2015-04-05 16:38:02 -04:00
xalley a238eb1b57 delete useless import 2015-04-05 09:01:36 +08:00
xalley 610f64fde2 determine the length of string with `wcwidth` 2015-04-05 08:34:11 +08:00
xa f0f4bacc41 fix Chinese display
tabulate.py: rewrite function `len`, if the argument is the instance
             of _text_type, encode to gbk and then compute its length.
	     the length of gbk bytecode is exactly the length of the
	     visible length.
2015-04-04 14:57:04 +08:00
Amjith Ramanujam 9e812e5bf8 Initial attempt at "\du" implementation. 2015-04-03 09:19:36 -07:00
Amjith Ramanujam 84184fc67a Prep changelog for next release. 2015-04-02 18:31:22 -07:00
Amjith Ramanujam 37616d9927 Update release script. 2015-04-02 18:23:29 -07:00
Amjith Ramanujam 5a1a9435cf Releasing version 0.16.3 2015-04-02 18:20:13 -07:00
Amjith Ramanujam dfa01ffb44 Changelog update. 2015-04-02 18:19:07 -07:00
Amjith Ramanujam b3f4dcfe12 Update Changelog. 2015-03-26 21:21:21 -07:00
Amjith Ramanujam 9f3cc42e37 Use PostgresLexer and add EXTENSION keyword to completion. 2015-03-26 21:20:20 -07:00
Amjith Ramanujam a80eb4ea19 Add a title field and report the notices. Closes #177 2015-03-25 00:26:38 -07:00
Amjith Ramanujam 979b5e711a Add more keywords to completion list. Closes #149 2015-03-24 23:27:39 -07:00
Amjith Ramanujam b027f890d1 Add OWNER to completion. 2015-03-24 17:33:30 -07:00
Amjith Ramanujam 84bc107a1a Releasing version 0.16.2 2015-03-22 13:59:08 -07:00
Amjith Ramanujam 67c0b3db08 Changelog update. 2015-03-22 13:55:33 -07:00
Amjith Ramanujam 70f6800d5a Update changelog. 2015-03-14 13:38:12 -07:00
Amjith Ramanujam 5be22f57a6 Add \connect to the list of commands that need completion refresh. 2015-03-14 13:38:12 -07:00
Amjith Ramanujam 7e61c6ddfc Merge pull request #172 from drocco007/master
Format Decimal values directly as strings
2015-03-10 22:08:55 -07:00
Daniel Rocco 9124df2364 Format Decimal values directly as strings
Closes #169
2015-03-11 00:59:36 -04:00
Amjith Ramanujam b19537ac3b Update changelog. 2015-03-10 00:20:57 -07:00
Amjith Ramanujam cc41a4ea6c Add <null> as a placeholder for missingvalue. 2015-03-09 23:49:27 -07:00
Amjith Ramanujam 7bb9e51b10 Update changelog. 2015-03-08 18:07:18 -07:00
Amjith Ramanujam 3260b6f26a Add FUNCTION to the list of auto-completion. 2015-03-08 18:07:08 -07:00
Amjith Ramanujam 55120a9958 Merge pull request #170 from darikg/better_dots
Better handle schema qualifications in current word
2015-03-08 17:50:23 -07:00
Darik Gamble 2b85eaecb0 Better handle schema-qualified word_before_cursor
Previously, if the current word contained a period, `suggest_type` would parse text to the right of the period as `word_before_cursor`, so that characters to the left of the period were parsed as the final token. Then `suggest_based_on_last_token` would generate suggestions under the generic catch-all `elif token_v.endswith('.')`. This means that, for example, `DROP TABLE schema_name.<TAB>` and `DROP FUNCTION schema_name.<TAB>` would each suggest both tables and functions from schema_name.

This commit changes this behavior to include schema qualifications as part of word_before_cursor, so that `suggest_based_on_last_token` operates on the actual preceding token, not just the schema name. This allows each token value to handle schema qualifications differently, and now  `DROP TABLE schema_name.<TAB>`  suggests only tables from schema_name, and the corresponding `DROP FUNCTION` command only functions.
2015-03-06 08:26:41 -05:00
Amjith Ramanujam dab63ee30b Changelog update. 2015-03-03 23:17:41 -08:00
Amjith Ramanujam daa3dff12d Releasing version 0.16.1 2015-03-03 23:14:32 -08:00
Amjith Ramanujam 08ea511271 Fix the unicode issue with hstore. 2015-03-03 23:14:04 -08:00
Amjith Ramanujam d26757a8db Do not attempt to run \c as a special command. 2015-03-03 22:10:06 -08:00
Darik Gamble 0e2e569711 Add additional cleanup regex 2015-03-01 16:34:34 -05:00
Darik Gamble ee17aba864 Fix slightly incorrect comment 2015-03-01 16:33:33 -05:00
Amjith Ramanujam 416f7f11eb Specify how to enable vi bindings in changelog. 2015-03-01 01:19:15 -08:00
Amjith Ramanujam 51a8f60663 Releasing version 0.16.0 2015-03-01 00:58:24 -08:00
Amjith Ramanujam e88121758b Update changelog. 2015-03-01 00:58:02 -08:00
Amjith Ramanujam 12f2bdd587 Adjust the meta info to be shorter. 2015-02-28 22:05:25 -08:00