package fr.postgresjson.connexion import com.fasterxml.jackson.core.type.TypeReference import kotlin.jvm.Throws /** * Select with unnamed parameters */ @Throws(DataNotFoundException::class) inline fun ExecutableRaw.execute( sql: String, values: List = emptyList(), noinline block: SelectCallback = {} ): R? = execute(sql, object : TypeReference() {}, values, block) /** * Select with named parameters */ @Throws(DataNotFoundException::class) inline fun ExecutableRaw.execute( sql: String, values: Map, noinline block: SelectCallback = {} ): R? = execute(sql, object : TypeReference() {}, values, block) /** * Select with named parameters */ @Throws(DataNotFoundException::class) inline fun ExecutableRaw.execute( sql: String, vararg values: Pair, noinline block: SelectCallback = {} ): R? = execute(sql, object : TypeReference() {}, values = values, block)