update_db: Update DB

Description Usage Arguments Value Examples

View source: R/update_db.R

Description

Update the portfolio.user_portfolio table

Usage

1
update_db(u, project_ids, the_co = NULL)

Arguments

u

The username of the person whose portfolio is being modified

project_ids

A vector of project_ids to be associated with that user

the_co

An open connection to adatabase (as created through credentials_extract and credentials_connect or credentials_now); if NULL, the function will try to create a connection_object by retrieving user information from the credentials/credentials.yaml in or somewhere upwards of the working directory.

Value

The local "portfolios.user_portfolio" relation in the postgresql database will be updated

Examples

1
2+2

databrew/portfoliodash documentation built on May 3, 2019, 1:47 p.m.