lib/no_brainer/connection.rb
# A connection is bound to a specific database.
A connection is bound to a specific database.
A connection is bound to a specific database .
def parse_uri
    require 'uri'
    parsed_uri = URI.parse(uri)
    if parsed_uri.scheme != 'rethinkdb'
      raise NoBrainer::Error::Connection,
        "Invalid URI. Expecting something like rethinkdb://host:port/database. Got #{uri}"
    end
    apply_connection_settings!(parsed_uri)
  end
def parse_uri require 'uri' parsed_uri = URI . parse ( uri ) if parsed_uri . scheme != 'rethinkdb' raise NoBrainer :: Error :: Connection , "Invalid URI. Expecting something like rethinkdb://host:port/database. Got #{uri}" end apply_connection_settings! ( parsed_uri ) end
A connection is bound to a specific database.
A connection is bound to a specific database .