Class: Olaf::Snowflake

Inherits:
Object
  • Object
show all
Defined in:
lib/olaf/drivers/snowflake.rb

Instance Method Summary collapse

Constructor Details

#initialize(**config) ⇒ Snowflake

Returns a new instance of Snowflake.



3
4
5
# File 'lib/olaf/drivers/snowflake.rb', line 3

def initialize(**config)
  @config = config
end

Instance Method Details

#fetch(olaf_query) ⇒ Object



7
8
9
# File 'lib/olaf/drivers/snowflake.rb', line 7

def fetch(olaf_query)
  conn.fetch(olaf_query.sql_template, **olaf_query.variables).all
end