aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-server-ktor
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-02-03 21:02:05 +0100
committerRobert Jaros <rjaros@finn.pl>2019-02-03 21:02:05 +0100
commit9b4f3f20d3878a10b4c6c21ded47ad5f74dfa8d3 (patch)
treee805a2aa8cdeffc958c8821c296b3858727ffcc9 /kvision-modules/kvision-server-ktor
parent656d9eac2234a165422c7d5d5db7f39243a0b355 (diff)
downloadkvision-9b4f3f20d3878a10b4c6c21ded47ad5f74dfa8d3.tar.gz
kvision-9b4f3f20d3878a10b4c6c21ded47ad5f74dfa8d3.tar.bz2
kvision-9b4f3f20d3878a10b4c6c21ded47ad5f74dfa8d3.zip
Dependencies upgrade.0.0.24
Diffstat (limited to 'kvision-modules/kvision-server-ktor')
-rw-r--r--kvision-modules/kvision-server-ktor/build.gradle1
-rw-r--r--kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/types/Date.kt16
2 files changed, 0 insertions, 17 deletions
diff --git a/kvision-modules/kvision-server-ktor/build.gradle b/kvision-modules/kvision-server-ktor/build.gradle
index bdc9c4c1..62b5fe83 100644
--- a/kvision-modules/kvision-server-ktor/build.gradle
+++ b/kvision-modules/kvision-server-ktor/build.gradle
@@ -11,7 +11,6 @@ dependencies {
compile "io.ktor:ktor-server-core:$ktorVersion"
compile "io.ktor:ktor-jackson:$ktorVersion"
compile "com.google.inject:guice:$guiceVersion"
- compile "com.github.andrewoma.kwery:mapper:$kweryVersion"
compile "com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonModuleKotlinVersion"
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlinVersion"
testCompile project(":kvision-modules:kvision-common-types")
diff --git a/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/types/Date.kt b/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/types/Date.kt
index 57853c8b..86fab30a 100644
--- a/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/types/Date.kt
+++ b/kvision-modules/kvision-server-ktor/src/main/kotlin/pl/treksoft/kvision/types/Date.kt
@@ -21,12 +21,6 @@
*/
package pl.treksoft.kvision.types
-import com.github.andrewoma.kwery.mapper.SimpleConverter
-import com.github.andrewoma.kwery.mapper.TableConfiguration
-import com.github.andrewoma.kwery.mapper.reifiedConverter
-import com.github.andrewoma.kwery.mapper.standardConverters
-import com.github.andrewoma.kwery.mapper.util.camelToLowerUnderscore
-import java.sql.Timestamp
import java.text.SimpleDateFormat
actual val KV_DEFAULT_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss"
@@ -38,13 +32,3 @@ actual typealias Date = java.util.Date
actual fun String.toDateF(format: String): Date = SimpleDateFormat(format).parse(this)
actual fun Date.toStringF(format: String): String = SimpleDateFormat(format).format(this)
-
-object DateConverter : SimpleConverter<Date>(
- { row, c -> Date(row.timestamp(c).time) },
- { Timestamp(it.time) }
-)
-
-val kvTableConfig = TableConfiguration(
- converters = standardConverters + reifiedConverter(DateConverter),
- namingConvention = camelToLowerUnderscore
-)