Class: Olaf::Snowflake
- Inherits:
-
Object
- Object
- Olaf::Snowflake
- Defined in:
- lib/olaf/drivers/snowflake.rb
Instance Method Summary collapse
- #fetch(olaf_query) ⇒ Object
-
#initialize(**config) ⇒ Snowflake
constructor
A new instance of Snowflake.
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 |