feature: add name into Query object

This commit is contained in:
2019-08-03 20:25:01 +02:00
parent 24aa3cf632
commit ae184cd52c
4 changed files with 11 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ import com.github.jasync.sql.db.QueryResult
import fr.postgresjson.entity.EntityI
class Query(private val sql: String, override val connection: Connection): EmbedExecutable {
class Query(override val name: String, private val sql: String, override val connection: Connection): EmbedExecutable {
override fun toString(): String {
return sql
}