ScanReport

data class ScanReport(val enums: List<RegisteredType>, val composites: List<RegisteredType>, val dynamicTypes: List<RegisteredType>, val unresolved: List<RegisteredType> = emptyList())

What a scan found and registered.

Worth logging or asserting on at startup. A scan that finds nothing is the failure this exists to make visible: a package name with a typo in it registers nothing and raises nothing, and the first sign of it is a query months later coming back with an unmapped column.

Constructors

Link copied to clipboard
constructor(enums: List<RegisteredType>, composites: List<RegisteredType>, dynamicTypes: List<RegisteredType>, unresolved: List<RegisteredType> = emptyList())

Properties

Link copied to clipboard

Data classes registered as PostgreSQL COMPOSITE types.

Link copied to clipboard

Classes registered as dynamic_dto discriminators.

Link copied to clipboard

Enums registered as PostgreSQL ENUM types.

Link copied to clipboard
val total: Int

How many classes were registered in total.

Link copied to clipboard

The enums and composites whose type the database does not have. They are registered all the same and appear in enums or composites as well - registering a name the catalogue does not carry yet is allowed, and works once the type exists and reloadTypes() has run. It is reported because the other way to get here is a name with a typo in it, and that one is otherwise silent until a query cannot map a column.

Functions

Link copied to clipboard

Whether the scan registered nothing at all.

Link copied to clipboard
open override fun toString(): String