# Sqlit – A lazygit-style TUI for SQL databases

I work mostly in the terminal but found myself constantly switching to bloated GUIs like SSMS only for the simple task of browsing tables and run queries. And I didn't find Existing SQL TUIs intuitive, having to read documentation to learn keybindings and CLI flags to connect. Given I had recently…

- **Page:** https://magpie.gallery/i/sqlit-a-lazygit-style-tui-for-sql-databases-o27n
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Runs on:** windows, macos, linux
- **Tags:** sql, tui, terminal, database, keyboard

## Source

Web · MaxTeabag: Sqlit – A lazygit-style TUI for SQL databases

- **Original:** https://news.ycombinator.com/item?id=46276002

> I work mostly in the terminal but found myself constantly switching to bloated GUIs like SSMS only for the simple task of browsing tables and run queries. And I didn't find Existing SQL TUIs intuitive, having to read documentation to learn keybindings and CLI flags to connect. Given I had recently switched to linux, I found myself using vs code's sql database extension. Something was awfully wrong. I wanted something like lazygit for databases – run it, connect, and query and frankly just make it enjoyable to access data. Sqlit is a keyboard-driven SQL TUI with: - Context-based keybindings (always visible) - Neovim-like interface with normal and insert mode for query editing - Browse databases, tables, views, stored procedures - Adapters for SQL Server, SQLite, PostgreSQL, Turso & more - SSH tunneling support - Themes (Tokyo Night, Nord, Gruvbox etc.) Inspired by lazygit, neovim and lazysql. Built with Python/Textual. Feedback welcome – especially on which adapters to prioritize next. My vision of sqlit is to make a tool that makes it easy to connect and query data, and to do that, and that thing only, really well. https://github.com/Maxteabag/sqlit https://github.com/Maxteabag/sqlit

## GitHub projects

- https://github.com/Maxteabag/sqlit

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
