Sha256: 31fb75f4ce784ff7c9ee31b93c5696033698ac0fb5a384dd09e474d56402679e
Contents?: true
Size: 682 Bytes
Versions: 11
Compression:
Stored size: 682 Bytes
Contents
require 'active_record/connection_adapters/postgresql_adapter' # Useful methods to run TimescaleDB with Toolkit functions in you Ruby app. module Timescaledb # Helpers methods to setup queries that uses the toolkit. module Toolkit module Helpers # Includes toolkit_experimental in the search path to make it easy to have # access to all the functions def add_toolkit_to_search_path! return if schema_search_path.include?("toolkit_experimental") self.schema_search_path = "#{schema_search_path}, toolkit_experimental" end end end end ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.include(Timescaledb::Toolkit::Helpers)
Version data entries
11 entries across 11 versions & 1 rubygems