Db.GroupsSourceThis module is low-level and used to manage groups of user.
create ?description name creates a new group with name name and with description description.
group_of_name name returns a tuple (groupid, name, description) describing the group. If no group has the name name, it fails with No_such_resource.
add_user_in_group ~groupid ~userid adds the user with ID userid in the group with ID groupid
remove_user_in_group ~groupid ~userid removes the user with ID userid in the group with ID groupid
val in_group :
?dbh:PGOCaml.pa_pg_data PGOCaml.t ->
groupid:Types.Group.id ->
userid:Types.User.id ->
unit ->
bool Lwt.tin_group ~groupid ~userid returns true if the user with ID userid is in the group with ID groupid.
all () returns all groups as list of tuple (groupid, name, description).