Myco

Description

Myco is a Perl module that contains the myco object framework. SYNOPSIS use Myco; ### DB connection Myco->db_connect(@dbconn); Myco->db_disconnect(@dbconn); $storage = Myco->storage; # Tangram connection object ### Object retrieval $obj = Myco->load($id); # retrieval by Tangram object id # Retrieve all of given class @objects = Myco->select(Myco::Foo); # Retrieve all of given class, using remote object and filtering $remote = Myco->remote(Myco::Foo); @objects = Myco->select($remote, $filter); # Retrieve all of given class, by cursor $cursor = Myco->select(Myco::Foo); while (my $obj = $cursor->current()) { # process $obj $cursor->next(); } ### Object insertion and update # Myco::Base::Entity alternative Myco->insert($obj); # $obj->save; Myco->update($obj); # $obj->save; Myco->update(@objects); ### Object removal - from db and memory Myco->destroy($obj); # $obj->destroy; Myco->destroy(@objects); ### Object removal - from just db Myco->erase(@objects); See Tangram::Storage for other miscellany. Encapsulates functionality of Tangram::Storage but treats the storage connection object as class data, allowing access to object persistence functionality via class method calls. Intended for use with so-called myco "entity" objects, that is those belonging to classes that inherit from Myco::Base::Entity. Use of inherited instance methods for managing object persistence state where possible is preferred. (ie. use $obj->save instead of both Myco->insert($obj) and Myco->update($obj).) Pulls in all other required classes of entire Myco class system..

Perl Module - Myco - Myco- - Object - Obj - Class - Objects - Libraries - Programming

Published By:The myco project

License Type:Freeware

Date Added:25 October, 2010

Version:0.01

Price:Free

Downloads:13

Size:87.0 KB

Platform: Linux

What people say
- required fields
     
Related Downloads

Data::Encrypted is a Perl module to transparently store encrypted data via RSA. SYNOPSIS # functional interface: use Data::Encrypted file => "./.

DateAug 12, 2010

AuthorAaron J Mackey

Size7.2 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

XML::Generator::vCard is a Perl module that can generate SAX2 events for vCard 3.

DateOct 4, 2010

AuthorAaron Straup Cope

Size7.2 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

WWW::Webrobot::pod::Testplan is a Perl module that helps you on how to write a test plan for webrobot. A test plan is a list of elements. An element itself may be a request, a (sub) test plan, an include or a cookie control command.

DateAug 25, 2010

AuthorABAS Software AG

Size98.3 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

Test::Stochastic is a Perl module to check probabilities of randomized methods. SYNOPSIS use Test::Stochastic qw(stochastic_ok); stochastic_ok sub { ...random sub...}, {a => 0.4, b => 0.6}; stochastic_ok {a => 0.4, b => 0.

DateAug 26, 2010

AuthorAbhijit Mahabal

Size4.1 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

Games::SGF::Tournament is a Perl module for tournament statistics generator.

DateOct 6, 2010

AuthorAl Nikolov

Size12.3 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming