The sqluv (sql + love) provides a simple text user interface for multiple DBMSs and local CSV/TSV/LTSV files. You execute SQL queries for the connected DBMS or local files.
The sqluv is a command derived from nao1215/sqly. Its starting point is to provide a more user-friendly interface for writing SQL compared to sqly.
Warning
sqluv is under development. Do not execute UPDATE or DELETE in the production environment. Currently sqluv starts transactions and executes commits on a per SQL query basis. Therefore, commits may be executed at unexpected times.
go install github.com/nao1215/sqluv@latest
brew install nao1215/tap/sqluv
- Windows
- macOS
- Linux
- MySQL
- PostgreSQL
- SQLite3
- SQL Server
- go1.24 or later
sqluv [FILE_PATHS]
※ Supported file formats: CSV, TSV, LTSV
When you start the sqluv command without specifying a file path, the following screen will appear.
Please enter the connection information for the DBMS you want to connect to.
If the connection is successful, database connection information will be saved in the configuration file. The next time you start the sqluv command, you will be able to select the DBMS you want to connect to from the list.
If you execute a SQL query, the history will be saved in the ~/.config/sqluv/history.db
. So, you can look up the history by pressing the history button.
If you select a history, the SQL query will be copied to the query text area.
Please specify a file path when executing the sqluv command. The file will be loaded before launching the TUI. If you start the sqluv command without specifying a file path, it will enter DBMS connection mode, and local files cannot be loaded.
Key | Description |
---|---|
ESC | Quit |
Ctrl + D | Quit |
TAB | Move to the next field |
Shift + TAB | Move to the previous field |
Name | Description |
---|---|
jorgerojas26/lazysql | A cross-platform TUI database management tool written in Go. |
vladbalmos/mitzasql | MySQL command line / text based interface client |
TaKO8Ki/gobang | A cross-platform TUI database management tool written in Rust |
First off, thanks for taking the time to contribute! See CONTRIBUTING.md for more information. Contributions are not only related to development. For example, GitHub Star motivates me to develop!
If you would like to send comments such as "find a bug" or "request for additional features" to the developer, please use one of the following contacts.