Jump to content

Datamapper with multiple data sources


phenam

Recommended Posts

Hi all, another question I was hoping you vets could give me some tips on.  I have an object which has 3 different sources (SQL, cURL, XML).  I usually use a datamapper to retrieve data from the SQL DB, so it was simple.  With 3 sources, should I pack them all into the 1 datamapper, or should there be 3 datamappers with some sort of layer over them, so that the controller just needs to make one call to get an array of objects with data from all 3 sources?  Thanks!

Link to comment
Share on other sites

  • 10 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.