pub enum RowMapping {
Node {
label: String,
id_column: Option<String>,
id_property: Option<String>,
properties: Vec<ColumnSpec>,
},
Relationship {
rel_type: String,
start_label: String,
start_column: String,
start_match_property: String,
end_label: String,
end_column: String,
end_match_property: String,
properties: Vec<ColumnSpec>,
},
}Expand description
Top-level mapping: how to turn a stream of decoded rows into Cypher inserts. Carries enough information for the playground’s auto-detect / preview path; users can edit this in the import dialog before running.
Variants§
Node
Each row becomes a node of label with the listed properties.
Fields
id_column: Option<String>Optional file column whose value becomes a unique property later referenced by relationship imports. When set, the generated statement includes a property literal; when omitted, the node has no identity beyond Cypher’s auto-allocated node id.
id_property: Option<String>Property name to store the id column under (defaults to
id when [Self::id_column] is set).
properties: Vec<ColumnSpec>Source column → property name mappings.
Relationship
Each row becomes a relationship between two nodes located by
(start_label, start_match_property) and the corresponding
end_* fields.