in reply to Foray into Tangram and Schemas

One thing I've noticed about Tangram is its shockingly inaccurate documentation and poor error messages when you pass an unexpected object type to a function. But when you do call it with the correct syntax it seems to work well :).

Once you have a schema, you need to deploy it with a back end. So if you're deploying to a generic relational database:

#!/usr/bin/perl use strict; use Tangram; use Tangram::Relational; 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 ) ] } } } ); Tangram::Relational->deploy($schema);

s/Relational/mysql/ if you're using MySQL.