Alternatives to sq

An open-source command-line tool to inspect, query, join, import and export data across databases and files. The listings below can replace it for an important use case. Each note says what changes if you switch.

The original

Replacements

Listings that take over the same core job as sq.

  • usql

    Use one command-line interface for many database systems.

    usql gives one command-line interface across many database systems using ordinary SQL instead of the SLQ language, but it lacks sq's import, join and diff features.

  • trdsql

    Query structured files with SQL from the command line.

    trdsql runs plain SQL over structured files from the command line under MIT, focusing on file querying rather than moving and comparing data between databases.

Also worth comparing

These listings name sq as their own alternative, so the relationship runs both ways.

  • sqlite-utils

    A Python command-line tool and library for creating, querying and transforming SQLite databases.

    sq imports and exports data across databases and files, including Excel into tables, but uses its own SLQ query language and is not a Python library.

Similar software

Related functionality, not a direct replacement.