This repository contains a tool for analyzing SQL to create data flow diagrams.
-
Clone and navigate:
git clone git@github.com:avrtt/postgres-diagrams.git cd postgres-diagrams
-
Build the Docker image:
docker compose build --build-arg UID="`id -u`" --build-arg GID="`id -g`"
The UID and GID arguments will be assigned to the user used within the container.
-
Launch the container:
docker compose up -d
See the sample program, which targets the SQL contained in all files within the resource folder.
Running the sample program with the following command generates the diagrams in the output folder:
docker exec -it postgres-diagrams python src/postgres-diagrams/sample.py
Licensed under the MIT License. See the LICENSE file for details.