Postgres CLI with autocompletion and syntax highlighting
github.com
github.com
It's been in private beta for backers for a while. I forget when it's going public, but I don't think it's far away...
I'm hoping to go public with the MySQL version before the end of this month. So a week or so. :)
Also, I'm not sure if it's a bug, but with Smart Completion set to off, it still auto completes as you are typing. This can get annoying after a while. Lastly, if you type ';' followed by enter, the program crashes.
\x is implemented and available in the latest version. The ';' enter bug is also fixed in the latest version.
We're still slowly adding more of the back-slash commands supported by psql.
SELECT * FROM "access" a WHERE a.
But it's a nice tool! (:https://github.com/dbcli/pgcli/issues/283
Thank you for catching that.
* select table or form from a list, hit enter
* then a form with all fields would show up
* one could populate some fields with query condition, e.g. name = 'xyz'
* then hit enter and tool would run a query
* then one could navigate prev/next through the results.
I was not fond of this, but some folks in the office still swear by this and ask if they can have a tool like that for postgres. I sent them to psql, but just typing SQL gives them heartburn.
I must admit some of them were quite faster with isql than with psql. This tool helps a bit, but still hoping for the form mode.
Especially these two:
* Configurability is the root of all evil
* The law of discoverability
I have a question, mostly about MySQL version of it: have you made some effort to natively support SSH port-forwarding/tsocks with this client? Because my experience is that it really works bad with the default client. But, TBH, I don't even know how much it depends on the client/server-side.
If it is changed to Vi mode then you can hit escape to go to normal mode and then use '0' to jump home or '$' to jump to the end etc.
Any way to do that without patching the pgstyle.py file?
I haven't tried it yet, but I seriously need to now.
In the multi-line mode a semi-colon signifies the end of a query.
But there is some work underway to add support for Redshift.
DWIM: /dwim/
[acronym, ‘Do What I Mean’]
<snip> Warren Teitelman originally wrote DWIM to fix his typos and spelling errors, so it
was somewhat idiosyncratic to his style, and would often make hash of anyone
else's typos if they were stylistically different. Some victims of DWIM thus
claimed that the acronym stood for ‘Damn Warren’s Infernal Machine!'.
In one notorious incident, Warren added a DWIM feature to the command interpreter
used at Xerox PARC. One day another hacker there typed delete *$ to free up some
disk space. (The editor there named backup files by appending $ to the original
file name, so he was trying to delete any backup files left over from old editing
sessions.) It happened that there weren't any editor backup files, so DWIM
helpfully reported `*$ not found, assuming you meant 'delete *'`. It then
started to delete all the files on the disk! The hacker managed to stop it
with a Vulcan nerve pinch after only a half dozen or so files were lost.
The disgruntled victim later said he had been sorely tempted to go to Warren's
office, tie Warren down in his chair in front of his workstation, and then type
delete *$ twice.It really was keyed to Warren's errors. It would try to correct "9" and "0" into "(" and ")", a mistake he apparently made frequently but I never did.