dbQueryHistory: Show the history of queries that were loaded into a database...

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Show the history of queries that were loaded into a database collection

Usage

1
2
3
dbQueryHistory(collection = "ctrdata", db = "users",
  url = "mongodb://localhost", username = "", password = "",
  verbose = FALSE)

Arguments

collection

Name of collection (default is "ctrdata")

db

Name of database (default is "users")

url

Address of the mongodb server in mongo connection string URI format http://docs.mongodb.org/manual/reference/connection-string/ (default is mongodb://localhost)

username

In case access requires credentials.

password

In case access requires credentials.

verbose

Print information.

Value

A data frame with columns: query-timestamp, query-egister, query-records (note: this is the number of records loaded when last executing ctrLoadQueryIntoDb(), not the total record number) and query-term, and with one row for each ctrLoadQueryIntoDb() loading trial records in this collection.

Examples

1
2
3
4
## Not run: 
dbQueryHistory()

## End(Not run)

rfhb/ctrdata documentation built on Jan. 15, 2019, 2:24 a.m.