Package-level declarations
Types
The outcome of a database operation, which either carries a value or the failure that replaced it.
Hands out queries and sessions, and runs transactions over them. That is all it is.
The only implementation of OctaviusClient. Everything it does, it does through its SessionProvider.
Carries a DataResult.Failure out through a transaction that only understands exceptions.
Functions
Runs block and hands back what it produced as a DataResult, turning the failures an application is expected to handle into DataResult.Failure and letting the ones that mean broken code go on being thrown.
Returns the carried value, throwing the failure in its place.
Whether this failure says the calling code is wrong, rather than that the operation did not work out.
Applies transform to the value of a DataResult.Success, and returns a DataResult.Failure as it stands.
Runs action on the failure if this is a DataResult.Failure, and returns this result either way.
Runs action on the carried value if this is a DataResult.Success, and returns this result either way.