forked from chunky/sqlite3todot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
26 lines (17 loc) · 875 Bytes
/
README
File metadata and controls
26 lines (17 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
README for sqlite3todot
If ever there were some itch-scratching going on, this would be it. This
is a simple tool to create .dot directed graphs from sqlite3 databases.
It can optionally include things like clustering, and tables to ignore,
from a "meta" database.
To build:
gcc -o sqlite3todot -lsqlite3 sqlite3todot.c
As an example to run, rendering the example meta database, with the meta
database as the meta database for that example meta [I can't go on]:
cat meta.sql | sqlite3 meta.db
./sqlite3todot meta.db meta.db > verymeta.dot
dot -Tpng -overymeta.png verymeta.dot
Alternatively, there's a script called "testlayouts.sh" that renders
all of the layouts graphviz has at time of writing. Simply pass it the
dot file you created before, and open the file it suggests:
sh ./testlayouts.sh ./verymeta.dot
Gary "ChunkyKs" Briggs <chunky@icculus.org>