sqlite-schema-viz

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

README

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.

Documentation

Overview

* This program generates a graph visualization of a SQLite database schema. * It uses the graphviz library to generate the graph. * * Copyright 2024 Paul Smith <paulsmith@pobox.com> * Credit to @Screwtapello on Gitlab for the sqlite-schema-diagram.sql file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL