--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>host</tt> - server hostname
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>hostaddr</tt> - server address (avoids hostname lookup, overrides <tt>host</tt>)
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>port</tt> - server port number
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>dbname</tt> - connecting database name
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>user</tt> - login user name
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>password</tt> - login password
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>connect_timeout</tt> - maximum time to wait for connection to succeed
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>options</tt> - backend options
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>tty</tt> - (ignored in newer versions of PostgreSQL)
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>sslmode</tt> - (disable|allow|prefer|require)
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>krbsrvname</tt> - kerberos service name
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>gsslib</tt> - GSS library to use for GSSAPI authentication
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>service</tt> - service name to use for additional parameters
  type: :BULLET
- !ruby/struct:SM::Flow::P 
  body: "<em>connection_hash</em> example: +PGconn.connect(:dbname=&gt;'test', :port=&gt;5432) <em>connection_string</em> example: +PGconn.connect(&quot;dbname=test port=5432&quot;) <em>connection_hash</em> example: +PGconn.connect(nil,5432,nil,nil,'test',nil,nil)"
- !ruby/struct:SM::Flow::VERB 
  body: " On failure, it raises a PGError exception.\n"
full_name: PGconn::new
is_singleton: true
name: new
params: |
  PGconn.new(connection_hash) -> PGconn
  PGconn.new(connection_string) -> PGconn
  PGconn.new(host, port, options, tty, dbname, login, password) ->  PGconn

visibility: public
