Skip to main content

Crate sz_orm_graph

Crate sz_orm_graph 

Source
Expand description

§SZ-ORM Graph — Neo4j Graph Database Support

Provides graph database connection, parameterized Cypher queries, typed result mapping, and declarative modeling capabilities. Does not modify existing sz-orm-core/sz-orm-sqlx APIs.

§Main Modules

  • connection — Bolt protocol connection and connection pool
  • query — Cypher query construction and execution
  • validator — Parameterized validation + SQL passthrough rejection
  • model — Declarative modeling
  • mapping — Typed result mapping
  • error — GraphError error type

Re-exports§

pub use algorithm::DirectedGraph;
pub use algorithm::NodeId;
pub use algorithm::UndirectedGraph;
pub use algorithm::Weight;
pub use community::Community;
pub use community::CommunityDetectionResult;
pub use community::ConnectedComponentDetector;
pub use community::LabelPropagation;
pub use connection::GraphConfig;
pub use connection::GraphConnection;
pub use connection::GraphPool;
pub use connection::GraphPoolStatus;
pub use cypher_parser::CypherSubsetParser;
pub use cypher_parser::NodePattern;
pub use cypher_parser::ParsedQuery;
pub use cypher_parser::RelPattern;
pub use cypher_parser::ReturnItem;
pub use engine::InMemoryGraphEngine;
pub use error::GraphError;
pub use graph_stats::DegreeDistribution;
pub use graph_stats::GraphStats;
pub use graph_stats::GraphStatsCalculator;
pub use mapping::NodeMapper;
pub use mapping::RelationMapper;
pub use mapping::ResultMapper;
pub use model::GraphNodeModel;
pub use model::GraphPropertyDef;
pub use model::GraphRelationModel;
pub use model::GraphValueType;
pub use model::RelationDirection;
pub use path_analysis::PathAnalyzer;
pub use path_analysis::ReachabilityMatrix;
pub use query::execute_query;
pub use query::CypherQuery;
pub use query::CypherQueryBuilder;
pub use query::GraphNode;
pub use query::GraphPath;
pub use query::GraphRelationship;
pub use query::GraphResult;
pub use subgraph::CommonSubgraphFinder;
pub use subgraph::IsomorphismChecker;
pub use subgraph::SubgraphMatcher;
pub use validator::CypherValidator;

Modules§

algorithm
图算法(Graph Algorithms)
community
社区发现(Community Detection)
connection
Connection — Bolt 协议连接与连接池
cypher_parser
Cypher 子集递归下降解析器
engine
InMemoryGraphEngine — 内存图引擎
error
GraphError — 图数据库错误类型
graph_stats
图属性统计(Graph Stats)
mapping
Mapping — 结果类型化映射
model
Model — 声明式建模
path_analysis
图路径分析(Path Analysis)
query
Query — Cypher 查询构造与执行
subgraph
子图匹配与图同构(Subgraph Matching)
validator
Validator — Cypher 参数化校验 + SQL 透传拒绝