Skip to main content
LOAD CSV streams the rows of a CSV file into a query. Unlike LOAD JSONL / LOAD GML (which build a whole graph from a file), LOAD CSV is a reading statement that yields one row at a time, bound to a variable you can reference in RETURN, MATCH, or CREATE. The file must live in the data subdirectory of the TuringDB working directory (set by -turing-dir, default $HOME/.turing).

Syntax

All values come back as strings — wrap them in toInteger(...) / toFloat(...) if you need numbers.

With headers

Without headers (index access)

Building a graph from CSV

Because LOAD CSV yields rows, you can drive CREATE from it inside a change:
LOAD CSV followed by MATCH in the same read statement is not yet supported.