Module: Epiphy::Connection

Includes:
RethinkDB::Shortcuts
Defined in:
lib/epiphy/connection.rb

Class Method Summary collapse

Class Method Details

.create(opts = {}) ⇒ Object

Create a RethinkDB connection.

Parameters:

  • Hash (host, port, db, auth)

Returns:

  • RethinkDB::Connection a connection to RethinkDB

Since:

  • 0.0.1



12
13
14
# File 'lib/epiphy/connection.rb', line 12

def self.create(opts = {})
  r.connect opts  
end