lib/sequel_core/adapters/postgres.rb
# Connects to the database.  In addition to the standard database
# options, using the :encoding or :charset option changes the
# client encoding for the connection.
Connects to the database.  In addition to the standard database
options, using the :encoding or :charset option changes the
client encoding for the connection.
Connects to the database . In addition to the standard database options using the : encoding or : charset option changes the client encoding for the connection .
def connect(server)
        opts = server_opts(server)
        conn = Adapter.connect(
          (opts[:host] unless opts[:host].blank?),
          opts[:port] || 5432,
          nil, '',
          opts[:database],
          opts[:user],
          opts[:password]
        )
        if encoding = opts[:encoding] || opts[:charset]
          conn.set_client_encoding(encoding)
        end
        conn.db = self
        conn
      end
def connect ( server ) opts = server_opts ( server ) conn = Adapter . connect ( ( opts [ :host ] unless opts [ :host ] . blank? ) , opts [ :port ] || 5432 , nil , '' , opts [ :database ] , opts [ :user ] , opts [ :password ] ) if encoding = opts [ :encoding ] || opts [ :charset ] conn . set_client_encoding ( encoding ) end conn . db = self conn end
Connects to the database.
Connects to the database .
server