Associate a role to a user by role name.
Associate a role to a user by role name.
Associate a role to a user by role object.
Associate a role to a user by role object.
Add role to users
Generic method to build an entity from postgresql database results, since the postgresql database may not return results.
Generic method to build an entity from postgresql database results, since the postgresql database may not return results.
the type of entity to be built
an optional ResultSet returned from the database
a function that can build entities of type A from a RowData object
a disjunction containing either a RepositoryError.Fail, or an object of type A
Generic method to build a list of entities from postgresql database results, since the postgresql database may not return results.
Generic method to build a list of entities from postgresql database results, since the postgresql database may not return results.
TODO: check in which case the database driver will return "None" instead of Some(ResultSet)
the type of entity to be built
an optional ResultSet returned from the database
a function that can build entities of type A from a RowData object
a disjunction containing either a RepositoryError.Fail, or an object of type A
Delete a role
Find a single entry by name
Find a single entry by name
the 128-bit UUID, as a byte array, to search for.
an optional RowData object containing the results
Find a single entry by ID.
Find a single entry by ID.
the 128-bit UUID, as a byte array, to search for.
an optional RowData object containing the results
Save a Role row.
Save a Role row.
id of the saved/new role.
List the roles associated with a user.
List the roles associated with a user.
List all roles.
List all roles.
Send a query to the database and retrieve a list of entities.
Send a query to the database and retrieve a list of entities.
Send query to the database and compare the number of rows affected.
Send query to the database and compare the number of rows affected.
Send query to the database and retrieve a single entity.
Send query to the database and retrieve a single entity.
Remove a role from all users by role name.
Remove a role from all users by role name.
Remove a role from all users by role object.
Remove a role from all users by role object.
Remove a role from a user by role name.
Remove a role from a user by role name.
Remove a role from a user by role object.
Remove a role from a user by role object.
Remove role from users
Remove role from users
Update a Role.
Update a Role.
id of the saved/new role.