filesToDB: filesToDB

Description Usage Arguments Details Value Author(s) Examples

Description

Writes text files to an OrientDB database

Usage

1
filesToDB(files, db, class, type = c("document", "graph"))

Arguments

files

A vector of file names

db

A database connection

class

The database class to insert into

type

The type of database being written to

Details

Writes text files to an OrientDB database. Inserts the class, text, file name, time and user into the database object for each file.

Value

A list of httr response objects

Author(s)

Jared P. Lander

Examples

1
2
3
4
5
6
## Not run: 
library(OrientExpress)
theDB <- dbInfo('localhost', database='DocStore', username='TheUser', password='ThePass', port=2480)
filesToDB(c('file1.txt', 'file2.txt'), db=theDB, class='Document')

## End(Not run)

jaredlander/TextInfo documentation built on May 18, 2019, 3:46 p.m.