Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (35 sloc) 867 Bytes
/**
* <slate_header>
* url: www.slatekit.com
* git: www.github.com/code-helix/slatekit
* org: www.codehelix.co
* author: Kishore Reddy
* copyright: 2016 CodeHelix Solutions Inc.
* license: refer to website and/or github
* about: A tool-kit, utility library and server-backend
* mantra: Simplicity above all else
* </slate_header>
*/
package slatekit.common.data
interface DbCon {
val driver: String
val url: String
val user: String
val pswd: String
companion object {
@JvmField val empty = DbConString("", "", "", "")
}
}
/**
* Connection string for a database
* @param driver : jdbc driver
* @param url : url
* @param user : username
* @param pswd : password
*/
data class DbConString(
override val driver: String,
override val url: String,
override val user: String,
override val pswd: String
) : DbCon
You can’t perform that action at this time.