in reply to Re: arranging code that works with SQL databases in Perl
in thread arranging code that works with SQL databases in Perl
Putting everything into Oracle procedures is the approach the project I'm working on right now has taken. Any result-set to be retrieved from the database is obtained by calling a function which returns a reference cursor. The user connected to Oracle has no select, insert, update, delete privileges at all but the packages containing the procs/funcs are created with definer rights instead of executor rights so whilst running something in the package they can update/delete/select/insert. Works well and the only SQL outside of Oracle is a "begin ? := func_or_proc(parameters)" which we have of course put into a single perl module.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: arranging code that works with SQL databases in Perl
by metaperl (Curate) on Jul 25, 2009 at 21:09 UTC | |
by mje (Curate) on Jul 27, 2009 at 07:45 UTC | |
|
Re^3: arranging code that works with SQL databases in Perl
by metaperl (Curate) on Sep 01, 2009 at 18:43 UTC | |
by mje (Curate) on Sep 02, 2009 at 17:04 UTC |