Class: Pendulum::DSL::Output::Postgresql

Inherits:
Base
  • Object
show all
Defined in:
lib/pendulum/dsl/output/postgresql.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Helper

included

Constructor Details

This class inherits a constructor from Pendulum::DSL::Output::Base

Instance Method Details

#to_urlObject



6
7
8
9
# File 'lib/pendulum/dsl/output/postgresql.rb', line 6

def to_url
  url = "postgresql://#{username_and_password}@#{hostname_and_port}/#{@database}/#{@table}"
  with_options(url, :ssl, :schema, :mode, :method)
end