HN user

amjith

1,042 karma

http://blog.amjith.com

* Creator of pgcli and mycli.

amjith.r at gmail.com

@amjithr

Posts44
Comments156
View on HN
amjith.com 1y ago

LiteCLI (a friendly SQLite client) now with LLM abilities

amjith
2pts0
switowski.com 6y ago

Favorite CLI Tools

amjith
85pts4
www.pgcli.com 6y ago

IRedis – a terminal client with autocompletion (now part of dbcli)

amjith
3pts0
litecli.com 7y ago

Show HN: LiteCLI – A CLI for SQLite with auto-completion and syntax highlighting

amjith
31pts2
opensource.com 8y ago

How Netflix does failovers in 7 minutes

amjith
3pts0
blog.amjith.com 8y ago

Git open – A small Git hack

amjith
1pts0
opensource.com 8y ago

An introduction to mssql-cli, a command-line client for SQL Server

amjith
2pts0
www.dbcli.com 8y ago

DBCLI – Modern Suite of Database CLIs

amjith
95pts25
blogs.technet.microsoft.com 8y ago

Mssql-cli: A new interactive command line tool for SQL Server

amjith
5pts0
www.pgcli.com 9y ago

Sensible Defaults

amjith
74pts27
opensource.com 9y ago

Python Libraries for Building Awesome Commandline UIs

amjith
7pts0
opensource.com 9y ago

4 Terminal Applications with Great Commandline UIs

amjith
7pts0
news.ycombinator.com 9y ago

Ask HN: How do I break through the plateau in touch typing speed?

amjith
6pts11
itsybits.xyz 9y ago

Show HN: I wrote a kid's game to teach my son alphabets. Feedback appreciated

amjith
2pts0
github.com 10y ago

Pymux: a tmux clone in pure Python

amjith
157pts53
mycli.net 10y ago

Show HN: Mycli – A CLI for MySQL with auto-completion and syntax highlighting

amjith
106pts29
github.com 10y ago

Hask: Haskell language features and standard libraries in pure Python

amjith
11pts0
dockercli.com 11y ago

Colorful docker management tool written in Python (with auto-completion)

amjith
5pts0
blog.amjith.com 11y ago

Show HN: FuzzyFinder – in 10 lines of Python

amjith
10pts0
blog.amjith.com 11y ago

Excited about Pycast – Weekly Python Screencasts

amjith
3pts0
www.kickstarter.com 11y ago

Better CLI for MySQL with Auto-Completion and Syntax Highlighting

amjith
17pts7
vimeo.com 11y ago

Video: pgcli – postgres client with autocompletion

amjith
1pts0
www.kickstarter.com 11y ago

Mysql-cli: MySQL client with auto-completion and syntax highlighting (kickstarter)

amjith
5pts3
pgcli.com 11y ago

Importing SQL data into IPython using pgcli

amjith
2pts0
pgcli.com 11y ago

One week after launching pgcli

amjith
1pts0
pgcli.com 11y ago

Show HN: Pgcli – A CLI for Postgres with auto-completion and syntax highlighting

amjith
227pts52
blog.dscpl.com.au 13y ago

Why are you using embedded mode of mod_wsgi?

amjith
1pts0
sivers.org 14y ago

Quit quirks when working with others

amjith
1pts0
www.amazon.com 14y ago

Free e-book: Learning Python Decorators

amjith
2pts0
amjith.blogspot.com 14y ago

Exponential to Linear Complexity using Memoization

amjith
4pts2

DBCLI (https://www.dbcli.com/) is an open source org that made pgcli, mycli, mssql-cli etc.

LiteCLI is part of that org. So you can think of it as a clone of mycli that happens to work with SQLite.

The code base is largely similar between mycli and litecli. The changes are to support the SQLite backend and to support the dot commands (like .tables, .mode etc).

So the feature set should be same.

The DBCLI tools are not created by a single individual (anymore). We have a team of core devs and the lead maintainer for pgcli, mycli and litecli are all different people.

I have a few recommendations for you.

We use `less -XRF` by default. You can change this to whatever you want via the config file `~/.config/litecli/config`. Just uncomment the line that says `# pager = "less -SXRF".

Adding the `-S` to the list of options will make it much better. It will not wrap long lines but instead it will enable horizontal scrolling (using arrow keys). Check for pager section on this page for some details: https://litecli.com/output/

The other option is to set the `auto_vertical_output = True` in the config file.

This option will cause results to be displayed vertically if they are too wide for the current window.

I'm the creator of dbcli. I can give you my perspective.

usql is a great tool if you're familiar with Postgres' psql client and wish you could use it for other databases like MySQL, Cassandra etc.

dbcli tools are designed to preserve the usage semantics of the existing tools but improve on them by providing auto-completion. For instance you can use `\d` in pgcli and `SHOW TABLES` in mycli. This was a conscious decision to make pgcli and mycli drop in replacements for of MySQL and psql. I was also working under the assumption that people rarely use multiple databases, you're either a postgres shop or a MySQL shop. If you have a mix of both, there is a good chance that not a single person is interacting with both of them on a daily basis. You have different teams using different databases. But my reasoning there could be flawed.

There is nothing stopping someone from adding an adapter to the usql tool to make it behave like MySQL (because they like the mysql client better) based on a command line argument, for instance.

You've created something useful and it will save a lot of programmers a ton of time.

I didn't find your writing insufferable. I've written tongue in cheek (or over the top) posts about my projects in the past. If they can't see the humor and the usefulness of the project, their loss.

Thank you for creating Glom and thank you for posting it on HN. Count me in as one of your users.

One of the core devs have expressed interest in creating an sqlite version. But work hasn't started. If you would like to chip in we would be happy to support you in every which way.

He was the president of Django Software Foundation while running the startup.

So naturally he was a big proponent of Django and his stack was written completely in Django.

Sensible Defaults 9 years ago

The reason being the format change will be jarring to someone who is not used to seeing the expanded mode.

But you bring up a good point. I'm not mired by maintaining legacy, so I could take this as an opportunity to educate users about the \x auto by enabling it as default.

Sensible Defaults 9 years ago

You can change this to an empty space via the config file right now. In ~/.config/pgcli/config look for continuation prompt and set it to empty string.