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)
  query(bigquery, query)
rescue StandardError => e
  handle_exception(
    "BIGQUERY:READ:EXCEPTION",
    "error",
    e
  )
end