Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on visualize-sqlite

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

visualize-sqlite is a Rust crate for creating simple visualizations of SQLite databases in GraphViz dot format.

Installation

wajig install libsqlite3-dev graphviz
cargo install visualize-sqlite

Usage

visualize-sqlite your_sqlite_database.db | dot -Tpng -Gfontname='Fira Mono' -Gfontcolor='#586e75' -Gbgcolor='#fdf6e3' -Nfontname='Fira Mono' -Nfontcolor='#586e75' -Efontname='Fira Mono' > output.png

Comments