Add a user to a course
Add a user to a course
Add users to a course.
Add users to a course.
the course to add users to.
an array of users to be added.
an implicit database Connection.
a boolean indicating if the action was successful.
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 Course row.
Delete a Course row.
Find a single entry by ID.
Find a single entry by ID.
the course's slug
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
Verify if this user has access to this project through any of his courses.
Verify if this user has access to this project through any of his courses.
Insert a Course row.
Insert a Course row.
List the courses associated with a user.
List the courses associated with a user.
Select courses based on the given user.
Select courses based on the given user.
the user to search by
whether we are searching for courses this user teachers, or courses this user is a student of.
the found courses
Return course by its project.
Return course by its project.
the project to filter by
a result set
List all courses.
List all courses.
an array of Courses
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 all users from a course.
Remove all users from a course.
the course to remove users from.
an implicit database Connection.
a boolean indicating if the action was successful.
Remove a user from a course.
Remove a user from a course.
Remove users from a course.
Remove users from a course.
the course to remove users from.
an array of the users to be removed.
an implicit database Connection.
a boolean indicating if the action was successful.
Update a Course row