Class: ActiveRecord::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Base
- Defined in:
- lib/active_record/connection_adapters/big_query_adapter.rb
Overview
no-doc
Class Method Summary collapse
-
.big_query_connection(config) ⇒ Object
Build a new BigQuery connection with the given configuration.
Class Method Details
.big_query_connection(config) ⇒ Object
Build a new BigQuery connection with the given configuration.
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/active_record/connection_adapters/big_query_adapter.rb', line 17 def big_query_connection(config) config = config.symbolize_keys params = { keyfile: config[:keyfile], project: config[:project], datasets: config[:datasets] } connection = ::BigQueryAdapter::Connection.new(params) ConnectionAdapters::BigQueryAdapter .new(connection, logger, config, {}) end |