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 (defaultlocalhost
). -
port
: the port to connect on (default28015
). -
db
: the default database (defaulttest
). -
user
: the user account to connect as (defaultadmin
).<