Class: Purview::Pullers::BaseSQL

Inherits:
Base show all
Includes:
Mixins::Connection, Mixins::Helpers, Mixins::Logger
Defined in:
lib/purview/pullers/base_sql.rb

Direct Known Subclasses

MySQL, PostgreSQL

Instance Method Summary collapse

Methods included from Mixins::Logger

#logger, #logger_opts, #logger_type, #with_context_logging

Methods included from Mixins::Helpers

#blank?, #coalesced, #filter_blank_values, #filter_nil_values, #present?, #zero?

Methods included from Mixins::Connection

#connect, #connection_opts, #with_new_connection

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Purview::Pullers::Base

Instance Method Details

#pull(window) ⇒ Object



4
5
6
7
8
# File 'lib/purview/pullers/base_sql.rb', line 4

def pull(window)
  with_new_connection do |connection|
    connection.execute(pull_sql(window))
  end
end