Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Possibility to provide CSV file in cypher-shell commandΒ #291

@sdaschner

Description

@sdaschner

As far as I understand, there is no easy way to take a running Neo4J instance on which I have no direct file system access and provide a CSV file for a LOAD CSV command.

Example situation

  • Neo4J running locally as Docker container, e.g. docker run --rm --name graph-db -p 7474:7474 -p 7687:7687 --env NEO4J_AUTH=neo4j/test neo4j:4.0.4
  • Cypher script that aims to convert data from a local CSV file into queries, e.g. LOAD CSV WITH HEADERS FROM 'file:///data.csv' AS row
  • A data.csv file, in the local working directory

It would be very helpful if there was a way to provide the file directly via the cypher-shell command. Now, IIUC, I have to either mount the file into my Docker container, or upload it somewhere, e.g. on GitHub and access it via HTTP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions