From 65d8e00902f2f6a85732410c052b8527fb6ca9ad Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Sat, 24 Aug 2019 23:42:08 +0200 Subject: [PATCH] add sendQuery(vararg) --- src/main/kotlin/fr/postgresjson/connexion/EmbedExecutable.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/fr/postgresjson/connexion/EmbedExecutable.kt b/src/main/kotlin/fr/postgresjson/connexion/EmbedExecutable.kt index 0428988..bd61ff6 100644 --- a/src/main/kotlin/fr/postgresjson/connexion/EmbedExecutable.kt +++ b/src/main/kotlin/fr/postgresjson/connexion/EmbedExecutable.kt @@ -51,4 +51,6 @@ interface EmbedExecutable { fun exec(values: Map): QueryResult fun sendQuery(values: List = emptyList()): Int fun sendQuery(values: Map): Int + fun sendQuery(vararg values: Pair): Int = + sendQuery(values.toMap()) } \ No newline at end of file