diff --git a/src/main/kotlin/fr/postgresjson/connexion/Function.kt b/src/main/kotlin/fr/postgresjson/connexion/Function.kt index e7c17f1..ed69eca 100644 --- a/src/main/kotlin/fr/postgresjson/connexion/Function.kt +++ b/src/main/kotlin/fr/postgresjson/connexion/Function.kt @@ -32,6 +32,12 @@ class Function(val definition: Function, override val connection: Connection): E ): R? = select(object: TypeReference() {}, values, block) + inline fun > selectOne( + value: R, + noinline block: SelectOneCallback = {} + ): R? = + select(object: TypeReference() {}, listOf(value), block) + /** * Select One entity with named parameters */