Graphviz
class Graphviz extends AbstractVisitor (View source)
Create a Graphviz output of a Schema.
Methods
void
void
void
string
getOutput()
Get Graphviz Output
void
write(string $filename)
Writes dot language output to a file. This should usually be a *.dot file.
Details
in AbstractVisitor at line 44
acceptNamespace(string $namespaceName)
Accepts a schema namespace name.
in AbstractVisitor at line 59
void
acceptColumn(Table $table, Column $column)
at line 39
void
acceptForeignKey(Table $localTable, ForeignKeyConstraint $fkConstraint)
in AbstractVisitor at line 75
void
acceptIndex(Table $table, Index $index)
in AbstractVisitor at line 82
void
acceptSequence(Sequence $sequence)
at line 153
string
getOutput()
Get Graphviz Output
at line 170
void
write(string $filename)
Writes dot language output to a file. This should usually be a *.dot file.
You have to convert the output into a viewable format. For example use "neato" on linux systems and execute:
neato -Tpng -o er.png er.dot