ca.shiftfocus.krispii.core.repositories
Add this component to a Part.
Add this component to a Part.
the component to be added
the part to add this component to
a boolean indicating whether the operation was successful
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 component.
Delete a component.
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 RowData object containing the results
Insert a new component.
Insert a new component.
the component to be inserted
the newly created component
Find all components enabled for a specific user, in a specific project.
Find all components enabled for a specific user, in a specific project.
the project to search within
the user to search for
an array of components
Find all components in a specific project.
Find all components in a specific project.
the project to search within
an array of components
Find all components belonging to a specific project part.
Find all components belonging to a specific project part.
the part to search in
an array of components
Find all components.
Find all components.
an array of components.
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.
Remove all components from a part.
Remove all components from a part.
Remove this component from a Part.
Remove this component from a Part.
the component to be removed
the part to remove this component from
a boolean indicating whether the operation was successful
Update an existing component
Update an existing component
the component to be updated
the updated component