First attempt at usable privilege granting (MySQL only currently)
[dbsrgits/DBIx-Class-Historic.git] / PRVILEGES.SKETCH
CommitLineData
6f6fd6c6 1Ash's thoughts on privilege/GRANT abstraction for DBIC
2
3So my first thought was some hideous mismash of lots of functions like:
4->grant($user, $schema, \@privileges)
5
6But DB2 and Oracle both support groups - and its a bit evil
7
8So while driving to badminton I came up with the following "idea".
9
10->grant({ user => $user, object => $table_or_object, privileges => \@privs})
11->grant({ group => $group, ... <as above> })
12->grant({ user=> $user, add_to_group => $group});
13
14Thoughts?