textToDB: textToDB

Description Usage Arguments Details Value Author(s) Examples

Description

Writes text to a database

Usage

1
textToDB(text, db, class, type = c("document", "graph"), filename = NULL)

Arguments

text

Text to be inserted

db

A database connection

class

The database class to insert into

type

The type of database being written to

filename

Name of file that is being inserted

Details

Writes text 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
7
## Not run: 
library(OrientExpress)
theDB <- dbInfo('localhost', database='DocStore', username='TheUser', password='ThePass', port=2480)
theText <- readLines('A-17.txt')
textFileToDB(theText, db=theDB, class='Document')

## End(Not run)

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