insert: insert

Description Usage Arguments Details Value Author(s) Examples

View source: R/insert.r

Description

Inserts records into the database

Usage

1
insert(db, object, type = c("document", "graph"))

Arguments

db

An OrientDB Object generated by dbInfo

object

A named list

type

Type of database to be written, can only be 'document' (default) or 'graph'

Details

Inserts records into the database, one at a time

Value

A response object indicating success or failure

Author(s)

Jared P. Lander

Examples

1
2
3
4
5
6
7
8
## Not run: 
db <- dbInfo(host='127.0.0.1', database='GratefulDeadConcerts',
             username='admin', password='admin', port='2480')
# note, below where the list name is 'class', there should be an at-symbol in front of 'class'
# but the R engine will not allow this
insert(db, object=list('class'='V', type='song', song_type='cover', name='Super Cool Song'))

## End(Not run)

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