INNER CODE UNIT · Python
cli
evangelosmeklis/peepdb · peepdb/cli.py:27
def cli():
"""
peepDB: A quick database table viewer.
This tool allows you to quickly inspect database tables without writing SQL queries.
It supports MySQL, PostgreSQL, MariaDB, SQLite, MongoDB, Firebase, MSSQL, and OracleDB.
Usage examples:
1. Save a new database connection:
peepdb save postgres1 --db-type postgres --host localhost --user postgres --password YourPassword --database peepdb_test
2. View all tables in a saved connection:
peepdb view postgres1
3. View a specific table with pagination:
peepdb view postgres1 --table users --page 2 --page-size 50