To have a SQL IDE directly on your terminal, use Harlequin.
Command-line database operations are resource-efficient and often quicker than switching between multiple apps.
Harlequin offers compatibility with various database types, including DuckDB, SQLite, Postgres, MySQL, BigQuery, and Trino.