Class::Struct::Persistent, which is ready to be uploaded to cpan,
is the module similar to Class::Struct, but is a framework for Persistent
Object progarmming.

It currently has three drivers for storing data, file, csv and mysql.
I'm not so sure about the name however. Could someone suggest a better
namespace?

It also imports a function, 'struct()', just like standard Class::Struct,
so I need to come up with a better name for this exported function. Any suggestions?

Here is a briefe synopsis:

struct Person => {
    columns => [ 'id', 'name', 'email' ],
    driver  => 'file', 
    datasource => 'data/person'
};

my $p = new Person();
$p->name('Sherzod');
$p->email('[EMAIL PROTECTED]');
$p->save() or die $p->error();

Anyone?


-- 
Sherzod B. Ruzmetov <[EMAIL PROTECTED]>
<URL: http://author.handalak.com >


Reply via email to