test vararg for ExecutableRaw.execute
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user