#plant-uml #postgresql #sql #mermaid

bin+lib sqlant

Generate PlantUML/Mermaid ER diagram textual description from SQL connection string

13 unstable releases (4 breaking)

0.5.0 Feb 2, 2025
0.4.0 Nov 11, 2024
0.3.4 Nov 10, 2024
0.3.1 Apr 14, 2024
0.1.3 Oct 10, 2022

#481 in Command line utilities

Download history 428/week @ 2024-10-26 434/week @ 2024-11-02 279/week @ 2024-11-09 279/week @ 2024-11-16 58/week @ 2024-11-23 149/week @ 2024-11-30 76/week @ 2024-12-07 48/week @ 2024-12-14 40/week @ 2024-12-21 24/week @ 2024-12-28 308/week @ 2025-01-04 53/week @ 2025-01-11 40/week @ 2025-01-18 35/week @ 2025-01-25 175/week @ 2025-02-01 40/week @ 2025-02-08

295 downloads per month

MIT license

43KB
1K SLoC

sqlant

Generate PlantUML/Mermaid ER diagram textual description from SQL connection string
Inspired by planter

Why created

I like the idea of planter and I use it in internal confluence documentation with PlantUML plugin for my projects.
But I want to make it better

Installation

Compiled Binary (Linux only)

Download the binary file from releases page

Docker (Compressed size around 6MB)

The Docker image contains the sqlant binary and serves as a wrapper for executing it. link

docker pull kurotych/sqlant:latest

Cargo

cargo install sqlant

Usage

PlantUML

Binary

sqlant postgresql://sqlant_user:sqlant_pswd@localhost/sqlant_db --legend -e

Docker

docker run --network host kurotych/sqlant postgresql://sqlant_user:sqlant_pswd@localhost/sqlant_db 

example link

postgresql://sqlant_user:sqlant_pswd@localhost/sqlant_db -o mermaid

Mermaid

image

Dependencies

~9–22MB
~340K SLoC