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 schedule.
Delete a schedule.
The course to delete.
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 schedule.
Create a new schedule.
The course to be inserted
the new course
List all schedules for a given class
List all schedules for a given class
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 schedule.
Update a schedule.
The courseSchedule to be updated.
the updated course