https://github.com/kurotych/sqlant
Generate PlantUML/Mermaid ER diagram textual description from SQL connection string
https://github.com/kurotych/sqlant
mermaid plantuml postgresql rust sql
Last synced: 9 months ago
JSON representation
Generate PlantUML/Mermaid ER diagram textual description from SQL connection string
- Host: GitHub
- URL: https://github.com/kurotych/sqlant
- Owner: kurotych
- License: mit
- Created: 2022-07-17T20:38:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-17T10:49:04.000Z (11 months ago)
- Last Synced: 2025-06-02T18:11:28.008Z (10 months ago)
- Topics: mermaid, plantuml, postgresql, rust, sql
- Language: Rust
- Homepage:
- Size: 154 KB
- Stars: 30
- Watchers: 5
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# sqlant
Generate PlantUML/Mermaid ER diagram textual description from SQL connection string
**Inspired by [planter](https://github.com/achiku/planter)**
## Installation
### Compiled Binary (Linux only)
Download the binary file from [releases](https://github.com/kurotych/sqlant/releases) page
### Docker (Compressed size around 6MB)
The Docker image contains the `sqlant` binary and serves as a wrapper for executing it.
[link](https://hub.docker.com/r/kurotych/sqlant)
```bash
docker pull kurotych/sqlant:latest
```
### Cargo
```bash
cargo install sqlant
```
## Usage
### PlantUML
#### Binary
```bash
sqlant postgresql://sqlant_user:sqlant_pswd@localhost/sqlant_db --legend -e
```
#### Docker
```bash
docker run --network host kurotych/sqlant postgresql://sqlant_user:sqlant_pswd@localhost/sqlant_db
```

```
postgresql://sqlant_user:sqlant_pswd@localhost/sqlant_db -o mermaid
```
### Mermaid

## Links
- [Optimizing the Process of ER Diagram Creation with PlantUML](https://kurotych.com/posts/er-diagram-creation/)