Skip to main content

Crate geode_client

Crate geode_client 

Source
Expand description

Geode Rust Client Library

A high-performance async Rust client for Geode graph database with full GQL support via QUIC+TLS.

ยงFeatures

  • ๐Ÿš€ Fully async using tokio with type safety
  • ๐Ÿ”’ QUIC + TLS 1.3 for secure, high-performance networking
  • ๐Ÿ“ Full GQL (ISO/IEC 39075:2024) support
  • ๐Ÿ—๏ธ Query builders for programmatic query construction
  • ๐Ÿ” Authentication & RBAC with RLS policies
  • ๐ŸŠ Connection pooling for concurrent workloads
  • ๐Ÿ“Š Rich type system with Decimal, temporal types

ยงExample

use geode_client::{Client, Result};

#[tokio::main]
async fn main() -> Result<()> {
    // Create QUIC client
    let client = Client::new("127.0.0.1", 3141)
        .skip_verify(true);

    // Connect via QUIC
    let mut conn = client.connect().await?;

    // Execute query
    let (page, _) = conn.query("RETURN 1 AS x").await?;
    println!("Result: {:?}", page);

    // Close connection
    conn.close()?;

    Ok(())
}

Re-exportsยง

pub use auth::AuthClient;
pub use auth::Permission;
pub use auth::RLSPolicy;
pub use auth::Role;
pub use auth::SessionInfo;
pub use auth::User;
pub use client::Client;
pub use client::Column;
pub use client::Connection;
pub use client::Page;
pub use client::PlanOperation;
pub use client::PreparedStatement;
pub use client::QueryPlan;
pub use client::QueryProfile;
pub use client::Savepoint;
pub use error::Error;
pub use error::Result;
pub use pool::ConnectionPool;
pub use query_builder::EdgeDirection;
pub use query_builder::PatternBuilder;
pub use query_builder::PredicateBuilder;
pub use query_builder::QueryBuilder;
pub use types::Range;
pub use types::Value;
pub use types::ValueKind;

Modulesยง

auth
Authentication and authorization client.
client
Geode client implementation using Quinn library for QUIC transport. Switched back to Quinn from Quiche for better MsQuic compatibility.
error
Error types for the Geode client.
pool
Connection pooling for Geode connections.
query_builder
Query builder for constructing GQL queries programmatically.
types
Type system for Geode values.
validate
Input validation utilities for the Geode client.

Constantsยง

VERSION
Library version