GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
GraphViz::DBI(3) User Contributed Perl Documentation GraphViz::DBI(3)

GraphViz::DBI - Graph database tables and relations

version 1.100860

  use GraphViz::DBI;
  my $dbh = DBI->connect('...', '...', '...');
  print GraphViz::DBI->new($dbh)->graph_tables->as_png;

This module constructs a graph for a database showing tables and connecting them if they are related. While or after constructing the object, pass an open database handle, then call "graph_tables" to determine database metadata and construct a GraphViz graph from the table and field information.

The methods described here are defined by this class; all other method calls are passed to the underlying GraphViz object:

Constructs the object; also creates a GraphViz object. The constructor accepts an optional open database handle.

Sets the database handle.

Returns the database handle.

Returns the tables defined in the database.

Checks the database metadata whether the argument is a valid table name.

Determines whether the field belonging to the table is a foreign key into some other table. If so, it is expected to return the name of that table. If not, it is expected to return a false value.

For example, if there is a table called "product" and another table contains a field called "product_id", then to indicate that this field is a foreign key into the product table, the method returns "product". This is the logic implemented in this class. You can override this method in a subclass to suit your needs.

This method goes through all tables and fields and calls appropriate methods to determine which tables and which dependencies exist, then hand the results over to GraphViz. It returns the GraphViz object.

  • Test with various database drivers to see whether they support the metadata interface.
  • Make each table a vertical port with dependencies using those ports.
  • Provide the possibility to name edges to specify the type of relationship ('has-a', 'is-a', etc.).

See perlmodinstall for information and options on installing Perl modules.

No bugs have been reported.

Please report any bugs or feature requests through the web interface at <http://rt.cpan.org/Public/Dist/Display.html?Name=GraphViz-DBI>.

The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN site near you, or see <http://search.cpan.org/dist/GraphViz-DBI/>.

The development version lives at <http://github.com/hanekomu/GraphViz-DBI/>. Instead of sending patches, please fork this project using the standard git and github infrastructure.

  Marcel Gruenauer <marcel@cpan.org>

This software is copyright (c) 2001 by Marcel Gruenauer.

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

2010-03-27 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.