Project

olaf

0.0
No release in over 3 years
Low commit activity in last 3 years
Ruby wrapper for Snowflake queries.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.3

Runtime

~> 0.99
~> 5.37
 Project Readme

Olaf

Gem Version CircleCI

Olaf is a small Ruby wrapper for Snowflake queries.

Olaf

Dependencies

olaf requires Ruby 2.6 or later, sequel and odbc driver to connect with DBs.

Install dependencies using bundler is easy as run:

bundle install

Installation

If you don't have Olaf, try this:

$ gem install olaf

Getting started

Olaf helps developers to represent Snowflake queries as objects, to have more control in the code and in tests.

Example

class FetchUsers
  include Olaf::QueryDefinition

  template './snowflake/users_in_department.sql'

  argument :department_id

  row_object User
end

query = FetchUsers.prepare(department_id: 1337)

Olaf.execute(query)
=> [#<User id: 41, department_id: 1337, name: 'Ian'>]