Sql2Dot is a tiny parser written in java to transform sql into dot for visualizing data structures. It parses some very basic sql which we use in PostgreSQL. Here is an example of sql (borrowed from lain) that Sql2Dot likes to parse. Source and class files can be found in this sql2dot.jar file Usage: java -jar sql2dot.jar <files> <files> - list of sql files Sql2Dot sends its output to the same loc