Better HN
topnewbestaskshowjobs
Log inSign up

amjith

1,042 karma · joined May 13, 2008 (18y ago) · 204 submissions

http://blog.amjith.com

* Creator of pgcli and mycli.

amjith.r at gmail.com

@amjithr

Submissions

comment 1y ago · link · parent

Love the site design. Excited to try it out.

2.

LiteCLI (a friendly SQLite client) now with LLM abilities(amjith.com ↗)

2 points · by amjith · 1y ago · discuss

comment 3y ago · link · parent

This is fantastic. I'm a huge fan of No Such Thing as a Fish podcast.

Are you part of club fish? I bet the folks in the discord channel would love this.

comment 3y ago · link · parent

I'm working on a mountain biking app to compare trails that I've ridden.

https://trailcompare.com/

Imports data from strava and lets me search and compare multiple rides.

The trail name detection only works in SantaCruz (CA) area.

comment 4y ago · link · parent

Can you elaborate what this means?

> Typesense was relatively strict with matches compared to other engines.

Perhaps an example to clarify the statement?

comment 5y ago · link · parent

> I've been loving mycli for the last 4 years or so.

So rewarding to hear this. Cheers!

comment 5y ago · link · parent

The latest version of pgcli is pypi was released on Dec 11 2020. There are only a few changes unreleased in the master branch.

https://github.com/dbcli/pgcli/blob/master/changelog.rst

What feature are you waiting for? I can talk to the project lead to see if we can push out a new release if needed.

comment 5y ago · link · parent

They are both supported in mycli and pgcli clients.

9.

Favorite CLI Tools(switowski.com ↗)

85 points · by amjith · 6y ago · 4 comments

10.

IRedis – a terminal client with autocompletion (now part of dbcli)(pgcli.com ↗)

3 points · by amjith · 6y ago · discuss

comment 7y ago · link · parent

How is the search implemented?

comment 7y ago · link · parent

Does anyone know if haiku can run Python 3? I know that haiku comes with Python but thedefault version is 2.7.

comment 7y ago · link · parent

Thank you for the kind words. It's always nice to hear from happy customers .

comment 7y ago · link · parent

Thank you, Simon. That means a lot coming from the author of datasette. I love your work.

comment 7y ago · link · parent

Damn it! :)

comment 7y ago · link · parent

We don't support all of the special commands but we do support a small subset of them. We support .mode .schema, .table and a few others.

comment 7y ago · link · parent

Haha. No.

We have a large set of tests, but the coverage is no where close to the level that SQLite has.

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

I'm a core dev in the project. Happy to answer questions.

Code: https://github.com/dbcli/litecli

It is based on the pgcli/mycli tools for Postgres and MySQL. It is the newest addition to the https://www.dbcli.com suite of tools.

21.

Show HN: LiteCLI – A CLI for SQLite with auto-completion and syntax highlighting(litecli.com ↗)

31 points · by amjith · 7y ago · 2 comments

comment 8y ago · link · parent

https://github.com/dbcli/mssql-cli

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

Thanks for the plug. I'm the author of the failover piece. Happy to answer questions.

comment 8y ago · link · parent

I did a similar library for Python (~3yrs ago).

blog: http://blog.amjith.com/fuzzyfinder-in-10-lines-of-python

library: https://github.com/amjith/fuzzyfinder

I haven't done any benchmarking to check the performance. Feedback welcome.

27.

How Netflix does failovers in 7 minutes(opensource.com ↗)

3 points · by amjith · 8y ago · discuss

28.

Git open – A small Git hack(blog.amjith.com ↗)

1 points · by amjith · 8y ago · discuss

29.

An introduction to mssql-cli, a command-line client for SQL Server(opensource.com ↗)

2 points · by amjith · 8y ago · discuss

1234567