# maxteabag/sqlit

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/maxteabag-sqlit).**

3,702 stars · 93 forks · Python · mit

## Links

- GitHub: https://github.com/Maxteabag/sqlit
- awesome-repositories: https://awesome-repositories.com/repository/maxteabag-sqlit.md

## Topics

`cockroachdb` `command-line-tool` `duckdb` `mariadb` `mysql` `oracle` `postgresql` `python` `sql` `sqlite` `ssh` `tui` `turso`

## Description

Sqlit is a terminal-based SQL client and database explorer designed for executing queries and managing database connections. It functions as a command line interface that provides syntax highlighting, command history, and a terminal user interface for rendering results.

The tool features a discovery engine that scans local Docker sockets to automatically identify and resolve connection details for active database containers. It handles secure access through encrypted SSH tunnels and integrates with external secrets managers to retrieve credentials.

The project includes capabilities for data management, such as streaming query results into CSV or JSON files. It also provides in-memory result filtering and fuzzy searching to explore large datasets without re-executing SQL statements.

## Tags

### Data & Databases

- [SQL Query Interfaces](https://awesome-repositories.com/f/data-databases/sql-query-interfaces.md) — Provides a dedicated terminal interface for executing raw SQL commands against connected databases. ([source](https://cdn.jsdelivr.net/gh/maxteabag/sqlit@main/README.md))
- [Database Connection Managers](https://awesome-repositories.com/f/data-databases/database-connection-managers.md) — Manages database connections using connection strings, URLs, and saved profiles for streamlined data access. ([source](https://cdn.jsdelivr.net/gh/maxteabag/sqlit@main/README.md))
- [SQL Database Management](https://awesome-repositories.com/f/data-databases/sql-database-management.md) — Combines container discovery and result set browsing to explore relational databases from the terminal.
- [Terminal User Interfaces](https://awesome-repositories.com/f/data-databases/sql-query-interfaces/terminal-user-interfaces.md) — Implements a terminal user interface for rendering SQL query results and maintaining command history.
- [SQL-to-CSV Exporters](https://awesome-repositories.com/f/data-databases/csv-format-converters/sql-to-csv-exporters.md) — Exports SQL query results directly into portable CSV or JSON files.
- [Query Result Exporters](https://awesome-repositories.com/f/data-databases/data-serialization-formats/structured-data-exporters/analysis-result-exporters/query-result-exporters.md) — Supports saving the results of SQL queries into machine-readable formats such as CSV or JSON. ([source](https://cdn.jsdelivr.net/gh/maxteabag/sqlit@main/README.md))
- [Row-Based Stream Writing](https://awesome-repositories.com/f/data-databases/row-based-stream-writing.md) — Uses row-based stream writing to export large database result sets to CSV or JSON without overloading system memory.
- [In-Page Search Filters](https://awesome-repositories.com/f/data-databases/search-indexing-technologies/search-indexing/search-and-indexing/content-search-filters/in-page-search-filters.md) — Provides fast fuzzy searching and filtering of query results directly within the terminal interface without re-executing SQL.

### Development Tools & Productivity

- [SQL Command Line Interfaces](https://awesome-repositories.com/f/development-tools-productivity/sql-command-line-interfaces.md) — Offers a terminal-based CLI for executing SQL statements with syntax highlighting and command history.
- [SQL Data Export Utilities](https://awesome-repositories.com/f/development-tools-productivity/sql-data-export-utilities.md) — Provides a command line interface specifically for executing queries and streaming output to CSV or JSON files.

### DevOps & Infrastructure

- [Container Image Discovery](https://awesome-repositories.com/f/devops-infrastructure/container-image-discovery.md) — Automatically identifies active database containers by scanning the local Docker socket to simplify connection setup.
- [Container Runtime Discovery](https://awesome-repositories.com/f/devops-infrastructure/container-runtime-discovery.md) — Automatically detects active database containers to resolve connection details without manual configuration. ([source](https://cdn.jsdelivr.net/gh/maxteabag/sqlit@main/README.md))

### Security & Cryptography

- [SSH Tunneling](https://awesome-repositories.com/f/security-cryptography/network-infrastructure-security/web-network-security/network-security/network-routing-access-control/ssh-tunneling.md) — Establishes encrypted SSH tunnels to route database traffic securely through intermediate servers.
- [Secure Database Access](https://awesome-repositories.com/f/security-cryptography/secure-database-access.md) — Secures database connectivity using encrypted SSH tunnels and external secrets managers.
- [Secrets and Credential Management](https://awesome-repositories.com/f/security-cryptography/security/cryptography-and-secrets/secrets-credential-management.md) — Integrates with external secrets managers and SSH tunnels to securely retrieve and protect database authentication credentials. ([source](https://cdn.jsdelivr.net/gh/maxteabag/sqlit@main/README.md))
- [Secret Vault Integrations](https://awesome-repositories.com/f/security-cryptography/security/cryptography-and-secrets/secrets-credential-management/secret-vault-integrations.md) — Retrieves sensitive database credentials from external secure vaults to avoid storing secrets in local configuration files.

### Software Engineering & Architecture

- [Large Dataset Explorers](https://awesome-repositories.com/f/software-engineering-architecture/performance-reliability/performance-optimization/data-handling-throughput/large-dataset-optimizations/large-dataset-explorers.md) — Allows interactive inspection of large query result sets using fuzzy search and in-memory filters. ([source](https://cdn.jsdelivr.net/gh/maxteabag/sqlit@main/README.md))

### Part of an Awesome List

- [Development Tools](https://awesome-repositories.com/f/awesome-lists/devtools/development-tools.md) — Lightweight TUI for SQL databases.
