Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

avrtt/postgres-diagrams

Repository files navigation

This repository contains a tool for analyzing SQL to create data flow diagrams.

Installation

  1. Clone and navigate:

    git clone git@github.com:avrtt/postgres-diagrams.git
    cd postgres-diagrams
  2. 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.

  3. Launch the container:

    docker compose up -d

Usage

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

License

Licensed under the MIT License. See the LICENSE file for details.

AltStyle によって変換されたページ (->オリジナル) /