ca.shiftfocus.krispii.core.repositories
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.
Delete a course.
A boolean indicating whether the operation was successful.
Find a single entry by ID.
Find a single entry by ID.
the UUID to search for
An implicit connection object. Can be used in a transactional chain.
an optional task if one was found
Create a new course schedule exception.
Create a new course schedule exception.
the new course
Find all schedule exceptions for a given course.
Find all schedule exceptions for a given course.
Find all scheduling exceptions for one student in one course.
Find all scheduling exceptions for one student in one course.
An implicit connection object. Can be used in a transactional chain.
a vector of the returned 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.
Update a course.
Update a course.
the updated course