Class: StickyElephant::Handler::Query

Inherits:
Base
  • Object
show all
Defined in:
lib/sticky_elephant/handler/query.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from StickyElephant::Handler::Base

Instance Method Details

#processObject



4
5
6
7
8
9
10
11
12
13
# File 'lib/sticky_elephant/handler/query.rb', line 4

def process
  log(msg: "#{payload}", level: :info)
  report_query(payload.to_s)

  socket.write(
    PostgresSimulator.new(
      extract_query_from(payload)
    )
  )
end