paulsmith / sqlite-schema-viz

Generate graph visualization of a SQLite database schema

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SQLite schema visualizer

Go

Usage

$ sqlite-schema-viz /path/to/sqlite.db

Example

CREATE TABLE users ( id integer, name text );
CREATE TABLE posts ( id integer, user_id integer, title text, body text, foreign key (user_id) references users(id) );
CREATE TABLE comments ( id integer, post_id integer, body text, foreign key (post_id) references posts(id) );

example render

Credits

Credit to @Screwtapello on Gitlab for sqlite-schema-diagram which provides the SQL query that generates the Graphviz DOT output this tool is based on.

About

Generate graph visualization of a SQLite database schema

License:GNU Affero General Public License v3.0


Languages

Language:Go 81.1%Language:Makefile 11.6%Language:Nix 7.3%