edvin
04/28/2017, 1:56 PMimage.png▾
edvin
04/28/2017, 2:08 PMthomasnield
04/28/2017, 2:09 PMthomasnield
04/28/2017, 2:11 PMkotlin
object Database {
private val edwPassword by lazy {
Observable.fromCallable { PasswordInput("Enter your EDW Password").toObservable() }.subscribeOnFx().blockingFirst()
}
val CSEDW by lazy {
Class.forName("com.teradata.jdbc.TeraDriver")
val config = HikariConfig().apply {
jdbcUrl = "jdbc:<teradata://server>"
username = System.getProperty("user.name")
password = edwPassword.blockingFirst()
minimumIdle = 1
maximumPoolSize = 5
}
HikariDataSource(config)
}
val SPNEP by lazy {
Class.forName("oracle.jdbc.OracleDriver")
val config = HikariConfig().apply {
driverClassName = "oracle.jdbc.OracleDriver"
jdbcUrl = "jdbc:oracle:thin:@//servername"
username = "xxx"
password = "xxx"
minimumIdle = 1
maximumPoolSize = 5
}
HikariDataSource(config)
}
}
edvin
04/28/2017, 2:11 PMthomasnield
04/28/2017, 2:13 PMcarlw
04/28/2017, 2:42 PMcarlw
04/28/2017, 2:43 PMjchildress
04/28/2017, 2:46 PMjchildress
04/28/2017, 2:46 PMjchildress
04/28/2017, 2:46 PMedvin
04/28/2017, 3:30 PMedvin
04/28/2017, 3:38 PMedvin
04/28/2017, 6:32 PMnullable = true
if you have a command that should accept a nullable parameter. Kotlin can't differentiate between them, or I'm not understanding the type system completely 🙂edvin
04/28/2017, 6:32 PMedvin
04/28/2017, 6:34 PMedvin
04/28/2017, 6:35 PMedvin
04/28/2017, 6:36 PMedvin
04/28/2017, 6:36 PMCommandTest.kt
.edvin
04/28/2017, 6:38 PMedvin
04/28/2017, 6:39 PMcarlw
04/28/2017, 6:40 PMedvin
04/28/2017, 6:42 PMedvin
04/28/2017, 6:42 PMedvin
04/28/2017, 6:43 PMedvin
04/28/2017, 6:43 PMcarlw
04/28/2017, 6:43 PMedvin
04/28/2017, 6:44 PMcarlw
04/28/2017, 6:45 PMedvin
04/28/2017, 6:45 PM