[CDBI] Question

Matt S Trout dbix-class at trout.me.uk
Thu Sep 8 14:11:47 BST 2005


On Thu, Sep 08, 2005 at 02:55:22AM -0400, Tyler Rorabaugh wrote:
> 
> Hello All,
> 
> 1) Is there a way to return a hashref of data from a cdbi module without 
> knowing the column names? Say for instance you want to
>    send a hashref to Soap::Lite or other cpan soap related modules.
>           For example:
>               If you wanted to call a cdbi module remotely via say .Net 
> j2ee etc by using a method of a class that returns a cdbi object
> 
>   I have tried the internal method called _data_hash but for tables 
> that have Foreign Keys it appears as though it will only return
> the blessed hashref of that data.

Have a look at Business::Bof (Business Oriented Framework); it already knows
how to make CDBI classes etc. nicely available over SOAP and provides a
POE server to handle the requests :)

-- 
     Matt S Trout       Specialists in perl consulting, web development, and
  Technical Director    UNIX/Linux systems architecture and automation. Mail
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

 + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +




More information about the ClassDBI mailing list