Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- begin
- connection = Vertica.connect({
- :host => options[:host],
- :user => options[:user],
- :password => options[:password],
- # :ssl => false, # use SSL for the connection
- # :port => 5433, # default Vertica port: 5433
- # :database => 'db', # there is only one database
- :role => 'pseudosuperuser' # the (additional) role(s) to enable for the user.
- # :search_path => nil, # default: <user>,public,v_catalog
- # :row_style => :hash # can also be :array (see below)
- })
- rescue Vertica::Error => error
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement