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 parts in a project.
Delete all parts in a project.
Delete all parts belonging to this project
A boolean indicating whether the operation was successful.
Delete a part.
Delete a part.
The part to delete.
A boolean indicating whether the operation was successful.
Find a single entry by its position within a project.
Find a single entry by its position within a project.
The project to search within.
The part's position within the project.
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 Project if one was found
Save a Part row.
Save a Part row.
The part to be inserted
the new part
Find all Parts belonging to a given Component.
Find all Parts belonging to a given Component.
Find all Parts belonging to a given Project.
Find all Parts belonging to a given Project.
The project to return parts from.
a vector of the returned Projects
Find all parts.
Find all parts.
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.
Update a part.
Update a part.
The part
id of the saved/new Part.