[Maypole] Maypole SQLT->TT loader

Simon Flack sf@flacks.net
Mon, 6 Dec 2004 21:06:05 +0000


On Mon, 06 Dec 2004 17:03:57 +0000, Dave Howorth wrote
> I've been working on a loader for Maypole that uses SQLT to read a 
> DDL file. The schema is then pushed through a TT template to 
> generate Perl initialization code for CDBI and Maypole (i.e. it 
> generates BeerDB.pm from beer_d_b.sql)
> 
> The work isn't finished, but I thought I'd post an early version to 
> get some feedback and because there was a recent question on the 
> Maypole list about table name mangling, which is a feature of this 
> loader. It's at
<http://www.mrc-lmb.cam.ac.uk/dhoworth/perl/Maypole-CDBI_Loader.html>

It looks interesting. I have a slight aversion to auto-generated code, even
when I can control what the code looks like. I think it's because hand-editing
the code is usually a pain - e.g. in this case, adding actions. Do you plan on
making the code generator support manual edits?

--simonflk