Subject: | sqlt-diagram: --natural-join needs Graph::Directed |
I ran the following instance of 'sqlt-diagram' and got that error:
sqlt-diagram -f=SQLite --natural-join -o digikam.png --color digikam.schema
Error: translate: Error with producer
'SQL::Translator::Producer::Diagram': Can't locate object method "new"
via package "Graph::Directed" (perhaps you forgot to load
"Graph::Directed"?) at
/usr/lib/perl5/site_perl/5.8.6/SQL/Translator/Schema.pm line 95.
And, indeed, the function SQL::Translator::Schema::as_graph_pm uses
Graph::Directed without ever importing that module. Inserting a 'use
Graph::Directed' in S::T::S took care of the problem.
(btw, SQL::Translator if the niftiest module I've seen in a little
while. Congrats and keep the good work!)