Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. begin
  2. connection = Vertica.connect({
  3. :host => options[:host],
  4. :user => options[:user],
  5. :password => options[:password],
  6. # :ssl => false, # use SSL for the connection
  7. # :port => 5433, # default Vertica port: 5433
  8. # :database => 'db', # there is only one database
  9. :role => 'pseudosuperuser' # the (additional) role(s) to enable for the user.
  10. # :search_path => nil, # default: <user>,public,v_catalog
  11. # :row_style => :hash # can also be :array (see below)
  12. })
  13. rescue Vertica::Error => error
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement