SchemaRegistry

Thread-safe registry mapping entity classes to their TableSchema.

Call register for every @ScyllaTable-annotated class at startup. All validation happens eagerly so schema errors surface before any query.

Functions

Link copied to clipboard
Link copied to clipboard
fun clear()
Link copied to clipboard
fun get(klass: KClass<*>): TableSchema
Link copied to clipboard
fun getOrNull(klass: KClass<*>): TableSchema?
Link copied to clipboard
fun <T : Any> register(klass: KClass<T>): TableSchema