All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.infobip.kafkistry.webapp.url.SqlUrls.kt Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
package com.infobip.kafkistry.webapp.url

class SqlUrls(base: String) : BaseUrls() {

    companion object {
        const val SQL = "/sql"
        const val SQL_QUERY_RESULT = "/query-result"
    }

    private val showSqlPage = Url(base, listOf("query"))
    private val showSqlQueryResult = Url("$base$SQL_QUERY_RESULT", listOf("query"))

    @JvmOverloads
    fun showSqlPage(query: String? = null) = showSqlPage.render("query" to query)

    fun showSqlQueryResult(query: String) = showSqlQueryResult.render("query" to query)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy