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 single project.
Delete a single project.
The project to be deleted.
An implicit connection object. Can be used in a transactional chain.
a boolean indicator whether the deletion was successful.
Find a project by slug.
Find a project by slug.
The project slug to search by.
an optional RowData object containing the results
Find project by ID and User (teacher || student).
Find project by ID and User (teacher || student).
the 128-bit UUID, as a byte array, to search for.
an optional Project if one was found
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 Project if one was found
Save a Project row.
Save a Project row.
The new project to save.
An implicit connection object. Can be used in a transactional chain.
the new project
Find all Projects belonging to a given course.
Find all Projects belonging to a given course.
The section to return projects from.
a vector of the returned Projects
Find all Projects.
Find all Projects.
a vector of the returned Projects
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.
Save a Project row.
Save a Project row.
The project to update.
An implicit connection object. Can be used in a transactional chain.
the updated project.