https://github.com/frectonz/sql-studio
SQL Database Explorer [SQLite, libSQL, PostgreSQL, MySQL/MariaDB, ClickHouse, Microsoft SQL Server]
https://github.com/frectonz/sql-studio
libsql mariadb microsoft-sql-server mssql mysql postgresql rust sqlite sqlite-browser
Last synced: 4 days ago
JSON representation
SQL Database Explorer [SQLite, libSQL, PostgreSQL, MySQL/MariaDB, ClickHouse, Microsoft SQL Server]
- Host: GitHub
- URL: https://github.com/frectonz/sql-studio
- Owner: frectonz
- License: mit
- Created: 2024-06-11T18:32:36.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-02-23T07:43:39.000Z (about 2 months ago)
- Last Synced: 2025-04-03T16:03:09.352Z (11 days ago)
- Topics: libsql, mariadb, microsoft-sql-server, mssql, mysql, postgresql, rust, sqlite, sqlite-browser
- Language: Rust
- Homepage: https://sql-studio.frectonz.et
- Size: 2.93 MB
- Stars: 2,597
- Watchers: 11
- Forks: 67
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- my-awesome-list - sql-studio
- awesome-clickhouse - frectonz/sql-studio - SQL Studio is a single command SQL database explorer that supports multiple databases including SQLite, PostgreSQL, and ClickHouse. (Integrations / Deployment and Management Tools)
README

# SQL Studio
Single binary, single command SQL database explorer. SQL studio supports *SQLite*, *libSQL*, *PostgreSQL*, *MySQL*, and *Microsoft SQL Server*.
### Local SQLite DB File
```bash
sql-studio sqlite [sqlite_db]
```### Remote libSQL Server
```bash
sql-studio libsql [url] [auth_token]
```### Local SQLite DB with libSQL driver
```bash
sql-studio local-libsql [database]
```### PostgreSQL Server
```bash
sql-studio postgres [url]
```### MySQL/MariaDB Server
```bash
sql-studio mysql [url]
```### ClickHouse Server (Partial Support)
```bash
sql-studio clickhouse [URL] [USER] [PASSWORD] [DATABASE]
```### Microsoft SQL Server
```bash
sql-studio mssql [connection]
```## Features
- Overview page with common metadata.
- Tables page with each table's metadata.
- Queries page with more access to your db.
- Infinite scroll rows view.
- Rich SQL IntelliSense for custom queries.More features available on the [releases page](https://github.com/frectonz/sql-studio/releases).
## Screenshots
### Overview Page

### Tables Page

### Query Page

## Installation
### Install prebuilt binaries via shell script (MacOS and Linux)
```bash
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/frectonz/sql-studio/releases/download/0.1.35/sql-studio-installer.sh | sh
```### Install prebuilt binaries via powershell script
```powershell
powershell -c "irm https://github.com/frectonz/sql-studio/releases/download/0.1.26/sql-studio-installer.ps1 | iex"
```### Updating
```bash
sql-studio-update
```## Nix
```bash
nix shell nixpkgs#sql-studio
```## Docker
A Docker image of SQL Studio is available on [Docker Hub](https://hub.docker.com/r/frectonz/sql-studio). The following is an example of how to run SQL Studio with the Postgres driver on port `3030`.
```bash
docker run -p 3030:3030 frectonz/sql-studio /bin/sql-studio \
--no-browser \
--no-shutdown \
--address=0.0.0.0:3030 \
postgres \
postgres://localhost:5432/
```## Contributing
Before executing `cargo run` you need to build the UI because the rust app statically embedded the UI files in the binary.
```bash
git clone [email protected]:frectonz/sql-studio.git
cd sql-studio
nix develop # if you use nix
cd ui
npm install
npm run build
cd ..
cargo run
```