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
Deletes all revisions of a task response for a particular task.
Deletes all revisions of a task response for a particular task.
the task to delete the response for
Deletes a task scratchpad.
Deletes a task scratchpad.
Find the latest revision of a task scratchpad.
Find the latest revision of a task scratchpad.
the user whose scratchpad it is
the task this scratchpad is for
an optional TaskScratchpad object
Insert a new TaskScratchpad.
Insert a new TaskScratchpad. Used to create new scratchpads, and to insert new revisions to existing pads. Note that the primary key comprises the user's ID, the task's ID, and the revision number, so each revision is a separate entry in the database.
the TaskScratchpad object to be inserted.
the newly created TaskScratchpad
List all users latest scratchpad revisions to a particular task.
List all users latest scratchpad revisions to a particular task.
the task to list scratchpads for
an array of TaskScratchpad objects representing each scratchpad
List a user's latest revisions for all task scratchpads for all projects.
List a user's latest revisions for all task scratchpads for all projects.
the user whose scratchpad it is
an array of TaskScratchpad objects representing each scratchpad
List a user's latest revisions for each task in a project.
List a user's latest revisions for each task in a project.
the user whose scratchpad it is
the Project this scratchpad is for
an array of TaskScratchpad objects representing each scratchpad
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.