jk2addict has asked for the wisdom of the Perl Monks concerning the following question:

I've been working on a hack against SQL::Translator::Schema to create schemas with a little less keystrokes. tables(), fields(), procedures(), etc change the scope of the objects returned, and all of the other properties like data_type(), size(), name(), nullable(), primary(), etc return $self to perpetuate the the current object.

my $schema = SQL::Translator::RecursiveSchema->new(name=>'MySchema'); $schema->tables('NewTable')->fields('id')->type('varchar')->size(36)-> +nullable(0); # instead of... my $field = $schema->get_table('NewTable')->get_field('id'); $field->size(36); $field->type('varchar'); $field->nullable(0);

This was inspired by a post about hacking the same into HTML::Element.

I wouldn't mind dumping it up on CPAN, but the name for such a beast is elusive to me...::RecursiveSchema, ::ChainedSchema, or something completely different. While it probably belongs in the SQL::Translator namespace, I don't want to invade that namespace if I don't have too. Anyone have any altername naming ideas?

-=Chris

20050809 Unconsidered by Corion (Keep/Edit/Delete: 7/3/0). Was considered by holli for moving to Meditations