QueryOptions

data class QueryOptions(val typeHandlers: List<TypeHandler<*>> = emptyList(), val compositeAsMapTypes: Set<QualifiedName> = emptySet(), val customCompositeMappers: Map<QualifiedName, PgCompositeMapper<*>> = emptyMap(), val returnAllCompositesAsMaps: Boolean = false, val json: Json? = null)

Configuration options for a single database query.

Allows for overriding global settings like type handlers, and composite mapping for a specific query execution.

Constructors

Link copied to clipboard
constructor(typeHandlers: List<TypeHandler<*>> = emptyList(), compositeAsMapTypes: Set<QualifiedName> = emptySet(), customCompositeMappers: Map<QualifiedName, PgCompositeMapper<*>> = emptyMap(), returnAllCompositesAsMaps: Boolean = false, json: Json? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val json: Json?

Optional custom JSON configuration to use for this specific query.

Link copied to clipboard
Link copied to clipboard