module translates and parses SQL statements. The
SQLfairy project has some nice
binaries that, among other things, use GraphViz or GD to draw pseudo-ER
diagrams from SQL CREATE statements. Drawing a diagram of an SQL schema
is as easy as
sqlt-diagram --db=MySQL ...