RawTableInitialStatus

data class RawTableInitialStatus(val hasUnprocessedRecords: Boolean, val maxProcessedTimestamp: Instant?)

Constructors

Link copied to clipboard
constructor(hasUnprocessedRecords: Boolean, maxProcessedTimestamp: Instant?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether there were any records with null _airbyte_loaded_at, at the time that this status was fetched.

Link copied to clipboard

The highest timestamp such that all records in SELECT * FROM raw_table WHERE _airbyte_extracted_at <= ? have a nonnull _airbyte_loaded_at.

Functions

Link copied to clipboard

Many callers need to do a create table if not exists. This is a utility method to update the initial status accordingly - i.e. if the table already existed, retain its status; otherwise, use the empty table status.