import_from_df: Imports a data.frame in the neo4j graph database

View source: R/import_from_df.R

import_from_dfR Documentation

Imports a data.frame in the neo4j graph database

Description

This function only works with localhost Neo4j instances.

Usage

import_from_df(
  graph,
  cql,
  toImport,
  periodicCommit = ifelse(graph$version[[1]] == 5, NA, 10000),
  by = Inf,
  ...
)

Arguments

graph

the neo4j connection

cql

the CQL query to be applied on each row of toImport. Use the 'row' prefix to refer to the data.frame column.

toImport

the data.frame to be imported as "row". Use "row.FIELD" in the cql query to refer to one FIELD of the toImport data.frame

periodicCommit

use periodic commit when loading the data (default: 10000). Not supported for Neo4j >= 5.

by

number of rows to send by batch (default: Inf). Can be an alternative to periodic commit for Neo4j >= 5.

...

further parameters for cypher()

See Also

cypher()


neo2R documentation built on Feb. 16, 2023, 10:39 p.m.

Related to import_from_df in neo2R...