The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Class::DBI::Loader::GraphViz - Graph tables and relationships

SYNOPSIS

    my $loader = Class::DBI::Loader->new(
        namespace => "BeerDB",
        dsn => "dbi:SQLite:dbname=t/test.db");
    BeerDB::Beer->has_a(brewery => "BeerDB::Brewery");
    # ...

    my GraphViz $g = $loader->graph_tables;
    my $dot = $g->as_dot;

DESCRIPTION

This module bridges Class::DBI::Loader and GraphViz::DBI, to allow GraphViz::DBI to know about Class::DBI's has_a relationships.

It provides one method in Class::DBI::Loader, graph_tables which returns a graphviz object.

SEE ALSO

Class::DBI::Loader, GraphViz::DBI.

AUTHOR

Simon Cozens, <simon@cpan.org>

COPYRIGHT AND LICENSE

Copyright 2004 by Simon Cozens

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.