Documentation
¶
Overview ¶
Package export provides APOC export functions.
This package implements all apoc.export.* functions for exporting graph data to various formats (JSON, CSV, Cypher, GraphML).
Index ¶
- func Csv(nodes []*Node, filePath string) error
- func CsvAll(nodes []*Node, rels []*Relationship, filePath string) error
- func CsvData(nodes []*Node, filePath string) error
- func Cypher(nodes []*Node, rels []*Relationship) string
- func CypherAll(nodes []*Node, rels []*Relationship, filePath string) error
- func CypherData(nodes []*Node, rels []*Relationship, filePath string) error
- func GraphML(nodes []*Node, rels []*Relationship) string
- func GraphMLAll(nodes []*Node, rels []*Relationship, filePath string) error
- func GraphMLData(nodes []*Node, rels []*Relationship, filePath string) error
- func Json(nodes []*Node, rels []*Relationship) (string, error)
- func JsonAll(nodes []*Node, rels []*Relationship, filePath string) error
- func JsonData(nodes []*Node, rels []*Relationship, filePath string) error
- func ToFile(data string, filePath string) error
- func ToString(nodes []*Node, rels []*Relationship, format string) (string, error)
- type Node
- type Relationship
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Csv ¶
Csv exports data to CSV format.
Example:
apoc.export.csv(nodes, '/path/to/export.csv') => exported
func CsvAll ¶
func CsvAll(nodes []*Node, rels []*Relationship, filePath string) error
CsvAll exports all graph data to CSV.
Example:
apoc.export.csv.all('/path/to/export.csv') => exported
func CsvData ¶
CsvData exports specific data to CSV.
Example:
apoc.export.csv.data(nodes, '/path/to/export.csv') => exported
func Cypher ¶
func Cypher(nodes []*Node, rels []*Relationship) string
Cypher exports data as Cypher statements.
Example:
apoc.export.cypher(nodes, rels) => Cypher statements
func CypherAll ¶
func CypherAll(nodes []*Node, rels []*Relationship, filePath string) error
CypherAll exports all graph data as Cypher statements.
Example:
apoc.export.cypher.all('/path/to/export.cypher') => exported
func CypherData ¶
func CypherData(nodes []*Node, rels []*Relationship, filePath string) error
CypherData exports specific data as Cypher statements.
Example:
apoc.export.cypher.data(nodes, rels, '/path/to/export.cypher') => exported
func GraphML ¶
func GraphML(nodes []*Node, rels []*Relationship) string
GraphML exports data to GraphML format.
Example:
apoc.export.graphml(nodes, rels) => GraphML string
func GraphMLAll ¶
func GraphMLAll(nodes []*Node, rels []*Relationship, filePath string) error
GraphMLAll exports all graph data to GraphML.
Example:
apoc.export.graphml.all('/path/to/export.graphml') => exported
func GraphMLData ¶
func GraphMLData(nodes []*Node, rels []*Relationship, filePath string) error
GraphMLData exports specific data to GraphML.
Example:
apoc.export.graphml.data(nodes, rels, '/path/to/export.graphml') => exported
func Json ¶
func Json(nodes []*Node, rels []*Relationship) (string, error)
Json exports data to JSON format.
Example:
apoc.export.json(nodes, relationships) => JSON string
func JsonAll ¶
func JsonAll(nodes []*Node, rels []*Relationship, filePath string) error
JsonAll exports all graph data to JSON.
Example:
apoc.export.json.all('/path/to/export.json') => exported
func JsonData ¶
func JsonData(nodes []*Node, rels []*Relationship, filePath string) error
JsonData exports specific data to JSON.
Example:
apoc.export.json.data(nodes, rels, '/path/to/export.json') => exported