Thing

@Serializable(with = ThingSerializer::class)
interface Thing<T>

Thing

A helper class for representing a reference to a Thing. This is used to represent a reference to a Thing in a record class. This is useful when using the 'FETCH' statement as when a Thing is fetched it is returned as an Record rather than a Reference.

Parameters

T

the type of the thing

Inheritors

Types

Link copied to clipboard
data class Record<T>(val id: String, val result: T) : Thing<T>
Link copied to clipboard
value class Reference<T>(val id: String) : Thing<T>

Properties

Link copied to clipboard
abstract val id: String

the id of the thing