Class: Embulk::Input::Presto::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/embulk/input/presto/connection.rb

Class Method Summary collapse

Class Method Details

.get_client(task) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/embulk/input/presto/connection.rb', line 5

def self.get_client(task)
  ::Presto::Client.new(
    server: "#{task['host']}:#{task['port']}",
    catalog: task['catalog'],
    user: task['user'],
    schema: task['schema']
  )
end