# TetrixAIDb Rust SDK

Async Rust client for [TetrixAIDb](https://github.com/deskree-inc/tetrix-ee), the AI-native database daemon that unifies vector, keyword, graph, and object storage behind a single binary protocol.

## Installation

```bash
cargo add tetrix-aidb
```

## Quick Start

```rust,no_run
use tetrix_sdk::{TetrixClient, Config};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = TetrixClient::new(Config {
        endpoint: "tcp://localhost:7779".to_string(),
        username: "admin".to_string(),
        password: "secret".to_string(),
        ..Default::default()
    })?;

    let health = client.health().await?;
    println!("Status: {}", health.status);
    Ok(())
}
```

## Features

- Tokio-based async client with connection pooling
- TCP, TLS (rustls), and Unix socket transports
- Auth-on-connect and retry with exponential backoff
- Entity indexing, semantic search, and batch operations
- IAM operations: organizations, users, teams, permissions
- Category management
- Full feature parity with the Go, Python, and TypeScript SDKs

## License

MIT
