From: Ash Berlin Date: Wed, 8 Nov 2006 22:09:19 +0000 (+0000) Subject: First thoughts on a privilege abstraction layer type thing X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6f6fd6c62b8f4ab0a17a0bff8f68c9afb5c2caac;p=dbsrgits%2FDBIx-Class-Historic.git First thoughts on a privilege abstraction layer type thing --- diff --git a/PRVILEGES.SKETCH b/PRVILEGES.SKETCH new file mode 100644 index 0000000..ac57fb0 --- /dev/null +++ b/PRVILEGES.SKETCH @@ -0,0 +1,14 @@ +Ash's thoughts on privilege/GRANT abstraction for DBIC + +So my first thought was some hideous mismash of lots of functions like: +->grant($user, $schema, \@privileges) + +But DB2 and Oracle both support groups - and its a bit evil + +So while driving to badminton I came up with the following "idea". + +->grant({ user => $user, object => $table_or_object, privileges => \@privs}) +->grant({ group => $group, ... }) +->grant({ user=> $user, add_to_group => $group}); + +Thoughts?