()
| 53 | } |
| 54 | |
| 55 | func (r *CDCStream[T]) GetLastCheckpoint() CdcCheckpoint { |
| 56 | if !r.lastCheckpointSet { |
| 57 | panic("last checkpoint not set, stream is still active") |
| 58 | } |
| 59 | return CdcCheckpoint{ID: r.lastCheckpointID, Text: r.lastCheckpointText} |
| 60 | } |
| 61 | |
| 62 | func (r *CDCStream[T]) AddRecord(ctx context.Context, record Record[T]) error { |
| 63 | if !r.needsNormalize { |
no outgoing calls