1
0
Fork 0
Commit Graph

9 Commits

Author SHA1 Message Date
astroshot c0e1081405
Feature: Add new formatter to export data to sql like mycli (#1366)
* Sub: Add new formatter to export data to sql like mycli

Body: New formatter is added, we can export query result to sql
insertion like mycli

==== End ====

* Sub: Install black and reformat code

Body:

==== End ====

* Sub: Add unit tests for new formatter

Body:

==== End ====

* Sub: Add new formatter to pgclirc
2022-09-14 17:41:40 -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
Rishi Ramraj 20a8837488 Restore gitignore entry 2018-05-15 00:57:44 -04:00
Rishi Ramraj 56f134ea07 Add coverage to gitignore 2018-05-14 23:04:43 -04:00
Rishi Ramraj 07ac778aa8 Update gitignore 2018-05-14 20:35:19 -04:00
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
Ludovic Gasc (GMLudo) 7e35be0d4f Add .gitignore for IDEA and pyvenv 2015-01-10 15:21:24 +01:00
Iryna Cherniavska 2e73468148 added support for ansi sql functions; added CASE, WHEN, FULL keywords; changed GROUP to GROUP BY 2014-12-17 21:16:21 -08:00
Amjith Ramanujam 60104d2da3 Add gitignore. 2014-12-14 18:11:29 -08:00