textFileToDB: textFileToDB

Description Usage Arguments Details Value Author(s) Examples

Description

Writes a text file to an OrientDB database

Usage

1
textFileToDB(file, db, class, type = c("document", "graph"))

Arguments

file

Path to a text file

db

A database connection

class

The database class to insert into

type

The type of database being written to

Details

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

Value

An httr response object

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)
textFileToDB('A-17.txt', db=theDB, class='Document')

## End(Not run)

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