ds.storage.database: MongoDB GridFS Storage model

ds.storage.databaseR Documentation

MongoDB GridFS Storage model

Description

MongoDB GridFS Storage model

Usage

ds.storage.database(url = ds.default.database(), db = "data_storage")

Arguments

url

address of the mongodb server in mongo connection string URI format, defaults to ds.default.database database.

For local mongodb server, use 'mongodb://localhost' URI. For local authenticated mongodb server, use 'mongodb://user:password@localhost' URI.

db

name of database, defaults to 'data_storage'

Value

list with storage options

Examples

  
  # change the 'yahoo' data source to use MongoDB to store historical data
  # register.data.source(src = 'yahoo', storage = ds.storage.database())
 


rtsdata documentation built on Sept. 25, 2023, 9:06 a.m.