GithubHelp home page GithubHelp logo

Comments (15)

jaytaylor avatar jaytaylor commented on June 27, 2024

+1

from pgcli.

amjith avatar amjith commented on June 27, 2024

This was requested by a few people. Need to look at how to do this effectively.

from pgcli.

treystout avatar treystout commented on June 27, 2024

+1

from pgcli.

cezio avatar cezio commented on June 27, 2024

+1

from pgcli.

jc21 avatar jc21 commented on June 27, 2024

+1

from pgcli.

stedi67 avatar stedi67 commented on June 27, 2024

+1

from pgcli.

binarysource avatar binarysource commented on June 27, 2024

+1

from pgcli.

amjith avatar amjith commented on June 27, 2024

Merged in PR #63 that adds \x support to master.

This currently fails on Python 3, but that will be fixed before the next release.

Can someone install the latest master and try it out?

You can install the latest master using the following command.

pip install -e [email protected]:amjith/pgcli.git#egg=pgcli

from pgcli.

jackmaney avatar jackmaney commented on June 27, 2024

It mostly works, but it seems to be printing extra information:

$ pgcli
[dbname]> \x
Expanded display is on.
Expanded display is on.
[dbname]> select generate_series(1,5);
-[ RECORD 0 ]---+--
generate_series | 1
-[ RECORD 1 ]---+--
generate_series | 2
-[ RECORD 2 ]---+--
generate_series | 3
-[ RECORD 3 ]---+--
generate_series | 4
-[ RECORD 4 ]---+--
generate_series | 5

SELECT 5
+-------------------+
|   generate_series |
|-------------------|
|                 1 |
|                 2 |
|                 3 |
|                 4 |
|                 5 |
+-------------------+
SELECT 5

from pgcli.

jackmaney avatar jackmaney commented on June 27, 2024

Whoah...it's not just with \x. I'm seeing double (blarg is just a test table):

$ pgcli
[dbname]> select * from blarg;
+-----------+
|         x |
|-----------|
|         2 |
|         3 |
| -17171717 |
+-----------+
SELECT 3
+-----------+
|         x |
|-----------|
|         2 |
|         3 |
| -17171717 |
+-----------+
SELECT 3

from pgcli.

amjith avatar amjith commented on June 27, 2024

@jackmaney Fixed. Can you try again?

from pgcli.

amjith avatar amjith commented on June 27, 2024

9a62921 - fixes the double printing of output.

from pgcli.

jackmaney avatar jackmaney commented on June 27, 2024

That did it. 😄

from pgcli.

jaytaylor avatar jaytaylor commented on June 27, 2024

Awesome work everybody!

On Fri, Jan 9, 2015 at 1:05 AM, Jack Maney [email protected] wrote:

That did it. [image: 😄]


Reply to this email directly or view it on GitHub
#19 (comment).

from pgcli.

amjith avatar amjith commented on June 27, 2024

This is now available in the release version 0.11.0

https://pypi.python.org/pypi?:action=display&name=pgcli&version=0.11.0

from pgcli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.