Skip to main content

shilp_sdk/
lib.rs

1//! # Shilp Rust SDK
2//!
3//! This is the official Rust SDK for the Shilp Vector Database API.
4//!
5//! ## Features
6//!
7//! - Collection Management (List, Add, Drop, Rename, Load, Unload, Flush, ReIndex)
8//! - Data Ingestion & Search (with keyword fields support)
9//! - Record Management (Insert, Delete, Expiry Cleanup)
10//! - Debug Collection Operations (Distance, Node Info, Levels, Neighbors)
11//! - Oplog Operations (Replica Registration, Heartbeat, Get Entries, Status)
12//! - Storage Listing
13//! - Health Check
14//! - Discovery Service Integration
15//!
16//! ## Example
17//!
18//! ```no_run
19//! use shilp_sdk::{Client, models::AddCollectionRequest};
20//!
21//! #[tokio::main]
22//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
23//!     // Initialize the client
24//!     let client = Client::new("http://localhost:3000");
25//!
26//!     // Check health
27//!     let health = client.health_check().await?;
28//!     println!("Health: {}", health.success);
29//!
30//!     // List collections
31//!     let collections = client.list_collections().await?;
32//!     println!("Collections: {:?}", collections.data);
33//!
34//!     Ok(())
35//! }
36//! ```
37
38pub mod client;
39pub mod collections;
40pub mod data;
41pub mod debug;
42pub mod discovery;
43pub mod error;
44pub mod health;
45pub mod models;
46pub mod oplog;
47pub mod settings;
48
49// Re-export commonly used types
50pub use client::Client;
51pub use discovery::DiscoveryClient;
52pub use error::{Result, ShilpError};