connect

ReQL command: connect

Command syntax

r.connect(opts={}) → connection

Description

Create a new connection to the database server. Accepts the following options:

  • host: the host to connect to (default localhost).
  • port: the port to connect on (default 28015).
  • db: the default database (default test).
  • user: the user account to connect as (default admin).<