sporty, you talk about objects not coinciding with tables. You mention that object attributes do not always match your table columns. You're raising some very valid concerns about object-relational mappers. Pixie is not an object-relational mapper. I never said it was an object-relational mapper. Pixie does not claim to be an object-relational mapper. Objects do not map to tables and attributes do not map to columns (in fact, the IBM article you linked to made that very clear). I don't know what you were talking about, but you certainly weren't talking about Pixie. It's for persisting objects, that's all. If someone wants to use it as an object-relational mapper, they're going to be disappointed.

You wrote: If you haven't used pixie yourself, I'm not quite sure how you can be so confident in it ....

I did not say that I'm confident in it. I wrote "I've not used it, but it sounds very interesting." I wasn't making specious claims. I simply said it was interesting.

I'm not entirely sure of what you're criticizing here, but you're criticisms are irrelevant to Pixie in the same way that if someone says they can't stand the sound of purring, that criticism would be irrelevant to dogs.

You also wrote:

As you see, for small projects, it prolly does wonders, but for a huge project, I doubt I would look at it all that quickly, since custom SQL is usually better than that generated by a general api.

I agree with you on that, but Pixie is for object persistence. If I were to use my objects as bundles of data with behaviors attached to them, Pixie is probably a bad choice. If I reverse that and look at objects as behaviors that have data associated with them, Pixie might make more sense. If I have to write huge blocks of custom SQL, then I am taking a data-centric approach (which is perfectly fine), and I wouldn't use Pixie. I did not claim that Pixie is the perfect solution to any problem. I merely mentioned it as a possible approach and certainly didn't claim it was the solution the original poster should adopt. Again, I merely said it was "interesting".

Update: I'm not responding to your last post because I just want this thread to end. Yes, the original poster was asking about mapping SQL to Perl. I'm quite aware of that. However, I mentioned Pixie almost as an afterthought on the off chance that it might prove beneficial and you decided to comment about that. I find it disappointing you spent so much time arguing about Pixie when you clearly had no idea what it was. In your final response, you completely didn't respond to anything I said and instead you took the trouble to raise an irrelevant issue. I'm done with this.

Cheers,
Ovid

New address of my CGI Course.


In reply to Re(5): Pixie is NOT an object relational mapper by Ovid
in thread Mixing Mysql and Perl by SavannahLion

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.