On Wed, 4 May 2005, Flavio S. Glock wrote:

Flavio S. Glock wrote:

I'm working on a module that translates datetime sets into SQL statements. I'd appreciate to have your feedback on it.

Here is a preliminary version:

http://www.ipct.pucrs.br/flavio/perl/DateTime-Format-SQL-0.00_07.tar.gz

This is the example in the synopsis:

 use DateTime::Format::SQL;
 use DateTime::Event::Recurrence;

 my $set = DateTime::Event::Recurrence->monthly;
 my $formatter = DateTime::Format::SQL->factory;
 print $formatter->format_set( set => $set,
                               table_name => 'MY_RECURRENCE',
                               lazy => 1 );

I think the basic idea is good, but the parameter & method names could be clearer.


Also, I'm wondering if that's the best namespace. DT::F::SQL implies some sort of standard SQL formatting to me. I wonder if it should even be in DT::F. Maybe it should be something like DT::E::Recurrence::AsSQL?

Anyone else have a good idea for the module name?


-dave

/*===================================================
VegGuide.Org                        www.BookIRead.com
Your guide to all that's veg.       My book blog
===================================================*/

Reply via email to