sqlite3

SQL database engine.

Installation

Usage

Export table to json

sqlite3 \
        "<db_path>" \
        ".mode .json" \
        ".once <output_path>" \
        "SELECT * FROM <TABLE>;"

Or

sqlite3 -json "<db_path>" "SELECT * FROM <TABLE>;" > "<output_path>"