Project

dbviz

0.0
No commit activity in last 3 years
No release in over 3 years
Visualizes Database Relations
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.14.0, ~> 0.14
>= 3.1.0, ~> 3.1
>= 1.2.2, ~> 1.2
>= 4.36.0, ~> 4.36
 Project Readme

dbviz - A tool for visualizing database relations

Overview

dbviz is a tool to visualize relations in a database. Point it at your DB, and it will produce a graph on STDOUT in a format suitable for processing or rendering with graphviz.

Installation

gem install dbviz

Configuration

dbviz needs to know which database to visualize. Unless told otherwise, it looks for a configuration file at ~/.config/dbviz.yaml. To tell it otherwise, either define DBVIZ_CONFIG in the environment, or provide it as the first argument to dbviz.

Environment is recommended, but using arguments is supported for convenience when working with multiple configurations.

Example

---
adapter: postgres
database: my-awesome-database
host: localhost
password: MyVerySecurePasswordStoredUnencryptedOnDisk
port: 5432
user: me

Usage

The following command will produce a visualization saved at db.png.

dbviz | dot -Tpng -o db.png

License

dbviz is available under the MIT License. See LICENSE.txt for the full text.

Contributors