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 all feedbacks for a task.
Delete all feedbacks for a task.
the task for which feedbacks should be deleted
an implicit connection is required, which can be used to run this operation in a transaction.
Delete a feedback.
Delete a feedback.
the entity to be deleted
an implicit connection is required, which can be used to run this operation in a transaction.
Find a single feedback for one task and student.
Find a single feedback for one task and student.
Create a new feedback for a task.
Create a new feedback for a task.
an implicit connection is required, which can be used to run this operation in a transaction.
List all feedbacks for a given task
List all feedbacks for a given task
the task to list feedbacks for
List all feedbacks in a project for one student.
List all feedbacks in a project for one student.
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.