pg-jsonl 0.1.1

Streaming parser for property-graph JSON Lines (PG-JSONL) node and edge files, including Neo4j APOC JSON exports
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! The parsed record of one line.

use crate::types::{
    Edge,
    Node,
};

/// One parsed PG-JSONL line.
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum PgJsonlRecord {
    /// A `"type":"node"` line.
    Node(Node),
    /// A `"type":"edge"` (or Neo4j APOC `"type":"relationship"`) line.
    Edge(Edge),
}