connect: Connect with RethinkDB

Description Usage Arguments Value Examples

View source: R/connection.R

Description

This function reads config file (if exists) or from 'host' and 'port' from parameters. Next, it opens a connection and creates database 'db_name' (only if already does not exists).

Usage

1
2
connect(host = "localhost", port = "28015", db_name = DEFAULT_DB,
  config_file = DEFAULT_CONFIG_NAME)

Arguments

host

character with host address (default 'localhost')

port

character with port number (default '28015')

db_name

character with databse name (default 'DEFAULT_DB')

config_file

character with rethink configuration file name (default 'DEFAULT_CONFIG_NAME')

Value

connection structure

Examples

1
2
3
4
## Not run: 
cn <- connect()

## End(Not run)

Appsilon/shiny.collections documentation built on Nov. 20, 2019, 5:39 p.m.