Skip to main content
Version: Current

Subscription - Record update

Generic record update

Generic records provide a generic way of publishing updates by the database. All updates have the same super type, GenericRecordUpdate, which is a sealed Kotlin class. This means that all instances are guaranteed to be one of the implementation types:

  • GenericRecordUpdate.Insert
  • GenericRecordUpdate.Delete
  • GenericRecordUpdate.Modify

All these types have the following properties:

  • tableNameString
  • recordIdLong
  • timestampLong
  • emitterString?

Additionally, GenericRecordUpdate.Insert and GenericRecordUpdate.Delete also have a record field. Whereas GenericRecordUpdate.Modify has an oldRecord and a newRecord field.