Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

data access trough mysql stored procedures

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


tamas at eisenberger

Nov 20, 2009, 5:18 PM

Post #1 of 2 (561 views)
Permalink
data access trough mysql stored procedures

Hy!

I have a web application that I protected with an authentication system
entirely written in mysql, so mysql's stored procedures does the
authentication, the session id generation and the privilege checking...

I have four sp for every table, to handle select insert update and
delete actions... And every sp that requires user rights will get a
session id as first parameter and checks if the user can do the action
or not.

This way the mysql user that used by the site can be completely
unprivileged!

Recently I decided to rewrite the application in an object oriented way
to get an easier maintainable solution, and I found catalyst and
dbix::class should be really useful! I was reading around them for days,
and I now have a concept how my application should be ported around
these tools, the only problem is my authentication mechanism what I
don't want to abandon!

So the question is that: Can I tell dbix::class somehow to use my stored
procedures for it's select, insert, update and delete actions?

Thanks for helping me!

P.S.: Sorry because my baaad English!
Attachments: smime.p7s (4.70 KB)


bobtfish at bobtfish

Nov 21, 2009, 4:19 AM

Post #2 of 2 (507 views)
Permalink
Re: data access trough mysql stored procedures [In reply to]

On 21 Nov 2009, at 01:18, Eisenberger Tamás wrote:
> So the question is that: Can I tell dbix::class somehow to use my
> stored
> procedures for it's select, insert, update and delete actions?

Yes, you can. Please ask on the DBIx::Class list or see the fine
documentation[1].

Cheers
t0m

1: http://search.cpan.org/dist/DBIx-Class/lib/DBIx/Class/Manual/Cookbook.pod#Using_database_functions_or_stored_procedures
_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.