This node has been sparked following my question from yesterday (Metadata and DBI Abstraction) into parsing DBI table metadata in the attempt to build an abstraction layer for some CGI scripts I am building for a medium-to-large web site.
 
First of all, I must express thanks to the many monks who /msg-ed me with suggestions and links for my problem - One of which (links, not monks) led me to the Tangram module which allows the creation of orthogonal object abstraction and persistence through UML schemas. While this may not be the final road that I go down for the implementation of my DBI abstraction, this module (I feel) offers some very powerful methods. My problem however, is how to get it all working - For example, following the documentation in the Tangram PODs and on the Tangram Home page, I started experimenting with schema to this end:
 
#!/usr/bin/perl use strict; use Tangram; my ($schema) = Tangram::Schema->new( 'classes' => { 'item' => { 'table' => 'test', 'abstract' => 1, 'fields' => { 'string' => [ qw( category description_short description_long description_table image_1 image_2 supplier_id barcode_id ) ], 'int' => [ qw( manufacturer supplier ) ] } } } ); $schema->deploy();

 
But, despite this following closely to examples from these sources, I am presented with:
 
rob@kathmandu:/development$ ./test.perl Can't locate object method "deploy" via package "Tangram::Schema" (per +haps you forgot to load "Tangram::Schema"?) at ./test.perl line 31.

 
Surely this is something simple which I have overlooked or forgotten, but I have done a little digging (more mundane and rudimentary attempts which I won't bore my fellow monks with) with little success. Prehaps, some of the well know proponents of DBIx::Recordset and Tangram could provide me with further enlightenment?
 
Thanks in advance,
 

 
Ooohhh, Rob no beer function well without!

In reply to Foray into Tangram and Schemas by rob_au

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.