/sqlite-explorer

SQLiteExplorer is an application for manipulating SQLite databases from the command line.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

SQLiteExplorer

Pepy Total Downlods PyPI - Downloads GitHub License

SQLiteExplorer is a command-line application designed for the manipulation of SQLite databases. With SQLiteExplorer, you can easily visualize table schemas, execute SQL queries, manage data within tables, and list tables and columns. It provides a convenient and efficient way to interact with SQLite databases directly from the command line.

Features

  • Visualization of table schemas.
  • Execution of SQL queries.
  • Data management in tables.
  • Listing of tables and columns.
  • Export to csv files. (Since version 0.1.2)
  • Create generic SQL export file (Since version 0.1.4)

Quick Start

Install

pip install sqlite-explorer

Usage

sqlexp --help
Usage: sqlexp [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  data        Retrieve and print data for a specific table.
  exec        Execute a SQL statement in the database.
  ls-col      List columns for a specific table.
  ls-tab      List all tables in the database.
  migrate-file  Generates SQL file to export database.
  schemas     Print schema for all tables in the database.
  sqlite-csv  Export table to CSV file
  table       Print schema for a specific table.

License

This project is licensed under the GNU-GPL License. See the LICENSE file for more details.