Name wanted for module in construction

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default Name wanted for module in construction

    Hi,

    I'm writing a module designed to work along with DBI to enable
    database-independent SQL generation. I've seen DBIx::SQLEngine and
    DBIx::Abstract, but I feel that the syntax is too verbose and the data
    structures too nested. My module uses source filters and PPI to allow
    you to write some Perlish code which is transformed. Syntax is nowhere
    near fixed yet, but along the lines of:

    $dbh->My::Module(table1, table1.foo == 1 && table1.bar eq "hello");
    (a.k.a. select * from table1 where table1.foo = 1 and table1.bar =
    "hello")

    or the more complex:

    $dbh->My::Module([table1->table2(table1.a==table2.b)], table1.status =~
    m/^Foo/ and (table2.a eq "a" || table2.a eq $foo));
    (a.k.a. select * from table1 right join table2 on table1.a=table2.b
    where table1.status like "Foo%" and (table2.a = "a" or table2.a =
    $foo)) where $foo is interpolated at runtime.

    Questions: am I reinventing the wheel? and if not, what should I call
    it? I have in mind Filter::SQL or DBIx::Filter.

    Thanks,

    Luke

    lukeross@gmail.com Guest

  2. Similar Questions and Discussions

    1. Coldfusion MX7 Web Application Construction Kit!
      Support Staff, Coldfusion Gurus, Ben Forta, Leon Chalnick, Angela Buraglia, or Raymond Camden: I installed Coldfusion Developer's Edition while I...
    2. Forms construction - Mac OS X
      Am I missing something or is the whole suite of Form construction tools (like Adobe Designer) mia in Acrobat 7.0 Professional for Mac OS X? If I am...
    3. with construction in cf script
      Hello! is there "with" construction in cf script? whet is the synthax? i get an with: with (lang){ ss = 123; } is there cfscript...
    4. New website under construction.
      Hi All: I am working on a new website and quite frankly am delighted with how it is turning out. I'm using a pc with DWMX Studio and playing...
    5. PostNuke module wanted: Soccer Leage betting game
      Hi, I am looking for a PostNuke module that lets my users bet on the national soccer league. Has anyone seen something similar? Using PostNuke...
  3. #2

    Default Re: Name wanted for module in construction

    On Thu, 16 Mar 2006 10:21:35 +1100, [email]lukeross@gmail.com[/email] wrote:

    Hi Luke
    > Questions: am I reinventing the wheel? and if not, what should I
    > call it? I have in mind Filter::SQL or DBIx::Filter.
    Yes, you are :-)). There are far too many such modules on CPAN already.Truely,
    we don't need another one, especially one which forces the user to learnanother
    language/syntax (the one /you/ are embedding in Perl).

    The point of CPAN is for all of us, yes including you and me, to re-useexisting
    tools.

    The same mistake is made repeatedly with HTML-based templating languages.


    Ron Savage Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139