Thank you for the feedback.
1,042 karma · joined May 13, 2008
* Creator of pgcli and mycli.
amjith.r at gmail.com
@amjithr
Thank you for the feedback.
https://www.youtube.com/watch?v=hJhZhLg3obk
I'd love some feedback.
I found out about this from one of the core-devs of pgcli. He made it possible to embed pgcli inside ipython. We wrote a blog post about how to use this: http://pgcli.com/embedding-pgcli-in-ipython.html
1. Psql comes with backslash commands that are implemented at the client level and not in the database. So you can't simply send `\dt` to the database. That will fail. The same is true for mysql as well (such as `\u`).
2. There wasn't a huge overlap in users who use Postgres and Mysql at the same time. Even for the minority that do, I tried to keep pgcli and mycli behave similarly so they can switch between them seamlessly.
3. The code complexity needed to support multiple database backends would make it hard for a newcomer to contribute to the project. This is just my guess and I don't have data to back this up.
4. I didn't think I could do a good enough job of maintaining parity with psql and mysql's default client if I had a universal client. I still don't have complete parity but it is close enough that users don't feel like their compromising a lot.
I'm happy you're taking on this challenge and I'll be glad to give you pointers on how the sql completion engine works in pgcli and mycli.
Cheers!
This was written after I watched a couple of videos from javascript30.com.
It doesn't use any framework, just pure JavaScript. It's designed for desktop with a keyboard. Does not work on phones or tablets.
My son is 4 years old. He can recognize most of the alphabets but not all of them.
Thanks for adding markdown support. :)
Is there a way in which I can show my gratitude? I can donate money or contribute code (if you need help).
The initial surge of users came from HN when I originally posted it at launch, but since then most of the users were through word of mouth.
There is a thriving community of core devs and a ton of users. I'm happy with both creations and made a lot of online friends.
These projects also led me to create a standalone python library for doing fuzzy matching. I'm quite proud of this one since the resulting code ended up being ridiculously small but produced really good results. https://github.com/amjith/fuzzyfinder/
Such as dragging a window using a three finger swipe?
I don't see many templates except that gradle one, do you have more or is that yet to come?
I like how prompt_toolkit (https://github.com/jonathanslenders/python-prompt-toolkit) is inspiring a lot of these user friendly command line tools.
I guess a few people didn't see it. :)
Discussion Thread: https://news.ycombinator.com/item?id=9975022
I'll be happy to answer questions about the project.
You can try that from the command line yourself. Try:
less -SRXF <filename.txt>
That should print the file and not clear the screen when you press 'q'.
You can also override the pager to change from less to something else right from inside mycli. For example:
amjith@localhost:(none)> pager cat
That will use cat instead of less for paging the output and that should keep the output in the screen but it won't page them like less.
In Linux and OS X the less command should keep the output in the screen after you press 'q'.
It is fixed now.
I'm not sure what you mean by view the results without re-running the query. Does scrolling not work? or do you mean if you launch a new session and want to see the results?
If you want to keep the results you can use audit logging feature (http://mycli.net/logging) which records every query and it's output into a file.
The author has done an excellent job of keeping the APIs simple and intuitive.
It also helps that he's a good OSS maintainer (responsive and courteous). :)
http://docs.memsql.com/latest/faq/#is-memsql-a-storage-engin...
I haven't personally tried it with memsql.
Mycli uses MySQL adapter called PyMySQL to connect to MySQL instances. I don't think it'll work with memsql.
If you're talking about writing a similar client for memsql, then yes it is possible to do that as long as there is a Python adapter for it.
The suggested solution was to uninstall mycli and reinstall directly from github.
pip uninstall mycli six; pip install https://github.com/dbcli/mycli/archive/master.zip
Brief Intro: This is a command line tool that is intended as a replacement for MySQL client.
It works with MySQL, MariaDB and Percona.
It is written in Python and it works in Python 2.6 to Python 3.4.
This is a counter part to http://pgcli.com.
MyCli was funded through Kickstarter (https://www.kickstarter.com/projects/1839007321/mysql-cli)
But there is some work underway to add support for Redshift.