Back to Exposed

lookupInReadValues

docs/api/exposed-dao/org.jetbrains.exposed.v1.dao/-entity/lookup-in-read-values.html

1.2.0910 B
Original Source

lookupInReadValues

fun <T, R : Any> Column<T>.lookupInReadValues(found: (T?) -> R?, notFound: () -> R?): R?

Checks if this column has been assigned a value retrieved from the database, then calls the found block with this value as its argument, and returns its result.

If a column-value mapping has not been retrieved, the result of calling the notFound block is returned instead.

Generated by Dokka © 2026 Copyright