JsonBColumnType
class JsonBColumnType<T : Any>(serialize: (T) -> String, deserialize: (String) -> T, castToJsonFormat: Boolean = false) : JsonColumnType<T>
Column for storing JSON data in binary format.
Parameters
serialize
Function that encodes an object of type T to a JSON String
deserialize
Function that decodes a JSON String to an object of type T
castToJsonFormat
Whether reads from this column should cast retrieved data to a non-binary format. This value only applies to SQLite databases & will be ignored for all others.
Samples
jsonbConstructors
Properties
Link copied to clipboard
Decode a JSON String to an object of type T.
Link copied to clipboard
Link copied to clipboard