Package-level declarations

Types

Link copied to clipboard
class JsonSqlType<T : Any>(val objectMapper: ObjectMapper, val javaType: JavaType) : SqlType<T>

SqlType implementation that provides JSON data type support via Jackson framework.

Link copied to clipboard
class KtormModule : Module

Jackson Module implementation that supports serializing Ktorm's entity objects in JSON format.

Properties

Link copied to clipboard
val sharedObjectMapper: ObjectMapper

A shared ObjectMapper instance which is used as the default mapper of json SQL type.

Functions

Link copied to clipboard
inline fun <C : Any> BaseTable<*>.json(name: String, mapper: ObjectMapper = sharedObjectMapper): Column<C>

Define a column typed of JsonSqlType.