Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Autodia::Handler::Torque 2.03

    Download button

    No screenshots available
    Downloads: 505  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Aaron Trevena | More programs
    Perl Artistic License / FREE
    June 21st, 2007, 09:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Autodia::Handler::Torque description

    Autodia::Handler::Torque Perl module contains an AutoDia handler for Torque xml database schema.

    Autodia::Handler::Torque Perl module contains an AutoDia handler for Torque xml database schema.

    This provides Autodia with the ability to read Torque Database Schema files, allowing you to convert them via the Diagram Export methods to images (using GraphViz and VCG) or html/xml using custom templates or to Dia.

    SYNOPSIS

    use Autodia::Handler::Torque;

    my $handler = Autodia::Handler::dia->New(%Config);

    $handler->Parse(filename); # where filename includes full or relative path.

    Description

    The Torque handler will parse the xml file using XML::Simple and populating the diagram object with class, superclass, and relationships representing tables and relationships.

    The Torque handler is registered in the Autodia.pm module, which contains a hash of language names and the name of their respective language.

    An example Torque database schema is shown here - its actually a rather nice format apart from the Java studlyCaps..

    < ?xml version="1.0" encoding="ISO-8859-1" standalone="no" ? >
    < !DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database_3_0_1.dtd" >
    < database name="INTERPLANETARY" >
    < table name="CIVILIZATION" >
    < column name="CIV_ID" required="true" autoIncrement="true" primaryKey="true" type="INTEGER"/ >
    < column name="NAME" required="true" type="LONGVARCHAR"/ >
    < /table >

    < table name="CIV_PEOPLE" >
    < column name="CIV_ID" required="true" primaryKey="true" type="INTEGER"/ >
    < column name="PEOPLE_ID" required="true" primaryKey="true" type="INTEGER"/ >

    < foreign-key foreignTable="CIVILIZATION" >
    < reference local="CIV_ID" foreign="CIV_ID"/ >
    < /foreign-key >
    < foreign-key foreignTable="PEOPLE" >
    < reference local="PEOPLE_ID" foreign="PEOPLE_ID"/ >
    < /foreign-key >
    < /table >

    < table name="PEOPLE" >
    < column name="PEOPLE_ID" required="true" autoIncrement="true" primaryKey="true" type="INTEGER"/ >
    < column name="NAME" required="true" size="255" type="VARCHAR"/ >
    < column name="SPECIES" type="INTEGER" default="-2"/ >
    < column name="PLANET" type="INTEGER" default="-1"/ >
    < /table >
    < /database >

    Product's homepage

      


    TAGS:

    AutoDia handler | Torque database schema | Perl module | Autodia::Handler::To | AutoDia | handler

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM