com.lightningkite.lightningdb.MetricsWrappedDatabase.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of server-core Show documentation
Show all versions of server-core Show documentation
A set of tools to fill in/replace what Ktor is lacking in.
The newest version!
package com.lightningkite.lightningdb
import com.lightningkite.lightningserver.serverhealth.HealthStatus
import kotlin.reflect.KType
class MetricsWrappedDatabase(val wraps: Database, val metricsKeyName: String): Database by wraps {
override fun collection(type: KType, name: String): FieldCollection = wraps.collection(type, name).metrics(metricsKeyName)
}