Class: Sequel::Platform::Snowflake
- Defined in:
- lib/sequel/extensions/platform.rb
Overview
Snowflake platform with Snowflake-specific function translations.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#[], #cast_date, #fetch, #initialize, #prefers?, #str_to_date, #supports?
Constructor Details
This class inherits a constructor from Sequel::Platform::Base
Instance Method Details
#date_diff(from, to) ⇒ Object
160 161 162 163 |
# File 'lib/sequel/extensions/platform.rb', line 160 def date_diff(from, to) # Snowflake requires unit parameter Sequel.function(:datediff, 'day', from, to) end |
#days_between(from, to) ⇒ Object
165 166 167 |
# File 'lib/sequel/extensions/platform.rb', line 165 def days_between(from, to) Sequel.function(:datediff, 'day', from, to) end |