/lazysql

A lazygit like terminal sql client

Primary LanguageGo

lazysql

A lazygit inspired terminal sql client.

Supported databases

  • MySql
  • Postgres

Config

The config for the client should be put in a ~/.config/lazysql/hosts.yaml file. An example can be found in hosts-example.yaml

TODO

  • Show errors in popup pane
  • Highlight current database
  • Hosts pane
  • Configuring connections from UI
  • Interactive results pane
    • Moving around with hjkl/arrows
    • Moving around with mouse
    • Selecting rows to copy
    • Editing results
    • Resize columns manually and or to content/type
  • Loading indicator for the query that is running
  • Resizable panes
  • Query editor
    • Basic VIM emulation
    • Undo and Redo
    • Line numbers
    • Scrolling
    • Execute query button (instead of enter in normal mode)
    • Mouse selection
    • Basic auto complete (keywords, tables, columns)
    • Advanced auto complete (suggestions based on existing query using chroma lexer)
    • Advanced VIM emulation
  • Highlight current table based on query
  • Help panes like lazygit
  • Searching in panes (databases, tables, results, ...)