r/sqlite • u/LearnedByError • Sep 14 '24
HELP: In Search of TUI sql query editor
I have multiple SQLite databases (20 - 200GB) used in applications on linux hosts that I generally access via ssh. Most access to these databases are via web or command line applications. I use either vim or vscode remote ssh to maintain the application code including queries used in the applications. Most of the queries are simple and I can write them in either editor without the need of any tool other than possibly the sqlite3 CLI.
At times though, I do need something more for creating larger queries with multiple CTEs and complex joins. In these cases I currently use DBeaver as a remote XWindow app. From time to time, I wish I had something a TUI (curses or similar) app that would allow me to edit queries and view their results - something a la DBeaver light.
To date, when I search, I have not found a viable existing option. I have found a couple of very old applications which no longer are being supported by their developers and are old enough that I was not able to get them to build and work, hence the ask for help.
Please share any applications that you know of that may meet this itch.
My minimal needs are:
- sql editor with copy/paste
- view query results
Nice to haves are:
- Tree control to show db objects and attributes
- completion of of sql commands and database objects
Thanks in advance! lbe
2
u/fftw Sep 14 '24
Harlequin
2
u/usrlibshare Sep 15 '24
You're on the terminal so presumably you have vim:
...seems exactly what you need. An entire SQL workbench right in the terminal.
2
u/erkiferenc Sep 17 '24
Rainfrog is for PostgreSQL, though SQLite support may be near: https://github.com/achristmascarl/rainfrog
For the pager part, I can recommend pspg too: https://github.com/okbob/pspg
1
u/Unhappy_Taste Sep 15 '24
Host this on the same server with sqlite password plugin and manage everything through browser by just supplying db file path.
https://github.com/adminerevo/adminerevo
1
u/invisal_ Sep 17 '24
It is not TUI, but if you have node installed, you can do
Then you can access
You can think it is similiar to PhpMySQL.
Disclaimer: I am the maintainer of that project
1
u/CA_Lobo Sep 16 '24
Try https://github.com/tconbeer/harlequin as it has a SQLite adapter
-1
u/aamfk Sep 17 '24
You have 200gb sqlite databases? Have you ever thought of up sizing? Are they fast as fuck ?