Method: Webhookdb::Replicator::Base#timestamp_column

Defined in:
lib/webhookdb/replicator/base.rb

#timestamp_columnWebhookdb::DBAdapter::Column

Column to use as the ‘timestamp’ for the row. This is usually some created or updated at timestamp.

Returns:

Raises:

  • (NotImplementedError)


495
496
497
498
499
500
# File 'lib/webhookdb/replicator/base.rb', line 495

def timestamp_column
  got = self._denormalized_columns.find { |c| c.name == self._timestamp_column_name }
  raise NotImplementedError, "#{self.descriptor.name} has no timestamp column #{self._timestamp_column_name}" if
    got.nil?
  return got.to_dbadapter
end