class Multiwoven::Integrations::Source::Bigquery::Client
def read(sync_config)
def read(sync_config) connection_config = sync_config.source.connection_specification connection_config = connection_config.with_indifferent_access query = sync_config.model.query query = batched_query(query, sync_config.limit, sync_config.offset) unless sync_config.limit.nil? && sync_config.offset.nil? bigquery = create_connection(connection_config) records = [] results = bigquery.query query results.each do |row| records << RecordMessage.new(data: row, emitted_at: Time.now.to_i) end records rescue StandardError => e handle_exception( "BIGQUERY:READ:EXCEPTION", "error", e ) end