test vararg for ExecutableRaw.execute

This commit is contained in:
2023-04-06 21:41:10 +02:00
parent bd473daa6c
commit 56c67981db
3 changed files with 10 additions and 21 deletions

View File

@@ -7,18 +7,6 @@ import kotlin.jvm.Throws
typealias SelectCallback<R> = QueryResult.(R?) -> Unit
sealed interface ExecutableRaw : Executable {
/**
* Select with one entity as argument
*/
@Throws(DataNotFoundException::class)
fun <R : Any> execute(
sql: String,
typeReference: TypeReference<R>,
value: R,
block: SelectCallback<R> = {}
): R? =
execute(sql, typeReference, listOf(value), block)
/**
* Select with [List] of parameters
*/