Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Rose::DB::Object::Loader 0.7662

    Download button

    No screenshots available
    Downloads: 301  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.3/5)
    13 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    John C. Siracusa | More programs
    Perl Artistic License / FREE
    February 1st, 2008, 16:09 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Rose::DB::Object::Loader description

    Rose::DB::Object::Loader allows you to automatically create Rose::DB::Object subclasses based on database table definitions.

    Rose::DB::Object::Loader allows you to automatically create Rose::DB::Object subclasses based on database table definitions.

    SYNOPSIS

    Sample database schema:
    CREATE TABLE vendors
    (
    id SERIAL NOT NULL PRIMARY KEY,
    name VARCHAR(255) NOT NULL,

    UNIQUE(name)
    );

    CREATE TABLE products
    (
    id SERIAL NOT NULL PRIMARY KEY,
    name VARCHAR(255) NOT NULL,
    price DECIMAL(10,2) NOT NULL DEFAULT 0.00,

    vendor_id INT REFERENCES vendors (id),

    status VARCHAR(128) NOT NULL DEFAULT 'inactive'
    CHECK(status IN ('inactive', 'active', 'defunct')),

    date_created TIMESTAMP NOT NULL DEFAULT NOW(),
    release_date TIMESTAMP,

    UNIQUE(name)
    );

    CREATE TABLE prices
    (
    id SERIAL NOT NULL PRIMARY KEY,
    product_id INT NOT NULL REFERENCES products (id),
    region CHAR(2) NOT NULL DEFAULT 'US',
    price DECIMAL(10,2) NOT NULL DEFAULT 0.00,

    UNIQUE(product_id, region)
    );

    CREATE TABLE colors
    (
    id SERIAL NOT NULL PRIMARY KEY,
    name VARCHAR(255) NOT NULL,

    UNIQUE(name)
    );

    CREATE TABLE product_color_map
    (
    product_id INT NOT NULL REFERENCES products (id),
    color_id INT NOT NULL REFERENCES colors (id),

    PRIMARY KEY(product_id, color_id)
    );

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Rose::DB::Object subclasses | database table definitions | Perl module | Rose::DB::Object | subclass | loader

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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