Skip to main content

nexus_sdk/
lib.rs

1//! Nexus Rust SDK
2//!
3//! Official Rust SDK for Nexus graph database.
4//!
5//! # Example
6//!
7//! ```no_run
8//! use nexus_sdk::NexusClient;
9//!
10//! #[tokio::main]
11//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
12//!     // Create a client
13//!     let client = NexusClient::new("http://localhost:15474")?;
14//!
15//!     // Execute a Cypher query
16//!     let result = client.execute_cypher("MATCH (n) RETURN n LIMIT 10", None).await?;
17//!
18//!     tracing::info!("Found {} rows", result.rows.len());
19//!     Ok(())
20//! }
21//! ```
22
23pub mod batch;
24pub mod client;
25pub mod data;
26pub mod error;
27pub mod models;
28pub mod performance;
29pub mod query;
30pub mod query_builder;
31pub mod schema;
32pub mod transaction;
33pub mod transport;
34
35pub use batch::*;
36pub use client::NexusClient;
37pub use data::*;
38pub use error::{NexusError, Result};
39pub use models::*;
40pub use performance::*;
41pub use query_builder::{BuiltQuery, QueryBuilder};
42pub use schema::*;
43pub use transaction::{Transaction, TransactionStatus};