[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] ANN: DFV::FromDBI 0.04_01


Data::FormValidator::FromDBI is a tool that generates
fairly complete form validation profiles automatically,
by analyzing the schema of a related database table. 

It currently works with PostgreSQL 8.0.

A developer release is now headed towards CPAN, you can grab a copy 
here:

http://mark.stosberg.com/dfv/Data-FormValidator-FromDBI-0.04_01.tar.gz

Or directly from my darcs repo:
http://mark.stosberg.com/darcs_hive/dfv-fromdbi/

The syntax is simple:

 $dfv_profile = generate_profile($dbh, 'table_name');

You can use the result directly in a dynamic BREAD application, or as the basis
for an even more powerful profile crafted by hand.

If there is interest, it would be possible to support this directly in a
DFV profile definition, which might look like this:

{
    from_dbi => [ $DBH, 'my_table_name' ],
    
    # Now override the generated profile with further definitions
    required => [...],
    optional => [...],
}

    Mark

-- 
http://mark.stosberg.com/ 


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.