Package-level declarations
Types
Main entry point to the data layer, offering a consistent API for database interaction.
Container for a database operation result, which can end in success or failure. Replaces the exception mechanism, forcing explicit handling of both cases.
Annotation used to specify a custom key for a property during object to/from map conversion.
Simple container for an SQL query fragment and its parameters.
Defines the contract for basic database operations (CRUD and raw queries).
Functions
Returns the value if the result is Success, or throws an exception if it is Failure.
Joins a list of fragments into one, working analogously to standard joinToString, but with parameter merging support.
Transforms the value inside DataResult.Success, leaving DataResult.Failure unchanged.
Executes an action if the result is Failure, without modifying the original error.
Executes an action if the result is Success, without modifying the original value.
Validates whether a runtime value matches the expected Kotlin type.
Creates QueryFragment from this SQL in String and param
Creates QueryFragment from this SQL in String and params map