Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-25 10:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found