in reply to Moose::Role to provide DBI interface

Perhaps you should learn about things like many to many relationships before you go building tools that are misguided attempts to simplify that which cannot be simplified.

How would you design a schema for storing book titles and their authors, for example?

  • Comment on Re: Moose::Role to provide DBI interface

Replies are listed 'Best First'.
Re^2: Moose::Role to provide DBI interface
by nysus (Parson) on Feb 08, 2017 at 20:52 UTC

    Ah, thanks, AC. But you know, like an ancient computer, I can only work on one thing at a time. This is more of a simple, academic exercise with Moose. Now, if your advice were to have been learn how to program AI first and have this all done for me automatically, that might have been worth something.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks

      "This is more of a simple, academic exercise with Moose."

      Then I suggest you leave the Database component out of this until you learn SQL.

        As mentioned in OP, I'm trying to ensure there is nothing technically wrong with setting up a new DB handler when switching to a new database. Since I'm not an expert on the underpinnings of OO and DBI, I'm worried there might be some kind of weird interaction that I might be missing. Maybe this might create database connections that never die, for example. I just don't know. I've come to learn that I'll often go down paths that lead to trouble. The benefit is I learn a lesson, but at the expense of a lot of time lost. I'm just trying to avoid that pain. I also enjoy seeing ideas from other Monks on my code. I always learn something new when I post here like the suggestion to use a config file above, which I hadn't thought of. I'm a hobbyist. But if you want to take me under your wing and turn me into a programming guru, let me know.

        $PM = "Perl Monk's";
        $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
        $nysus = $PM . ' ' . $MCF;
        Click here if you love Perl Monks