PostgresChangesPayload
//fluxbase-kotlin/io.github.nimbleflux.fluxbase.realtime/PostgresChangesPayload
PostgresChangesPayload
Section titled “PostgresChangesPayload”[jvm]
@Serializable
data class PostgresChangesPayload(val eventType: String, val schema: String? = null, val table: String? = null, val commitTimestamp: String? = null, val newRecord: JsonElement? = null, val oldRecord: JsonElement? = null, val errors: String? = null)
A normalized postgres_changes payload — the Supabase-compatible shape the TS SDK produces by converting the server’s new_record/old_record to new/old. Port of RealtimePostgresChangesPayload from sdk/src/types.ts:408.
Constructors
Section titled “Constructors”| PostgresChangesPayload | [jvm] constructor(eventType: String, schema: String? = null, table: String? = null, commitTimestamp: String? = null, newRecord: JsonElement? = null, oldRecord: JsonElement? = null, errors: String? = null) |
Properties
Section titled “Properties”| Name | Summary |
|---|---|
| commitTimestamp | [jvm] @SerialName(value = "commit_timestamp") val commitTimestamp: String? |
| errors | [jvm] val errors: String? |
| eventType | [jvm] val eventType: String |
| new | [jvm] val new: JsonElement? Convenience accessor — the TS SDK exposes new and old; in Kotlin those are keywords, so we use newRecord / oldRecord. |
| newRecord | [jvm] val newRecord: JsonElement? |
| old | [jvm] val old: JsonElement? |
| oldRecord | [jvm] val oldRecord: JsonElement? |
| schema | [jvm] val schema: String? |
| table | [jvm] val table: String? |