Skip to main content

Client Libraries

ekoDB provides 6 official client libraries for multiple programming languages: Rust, Python, TypeScript, Go, Kotlin, and JavaScript. We strongly recommend using these libraries instead of making direct API calls, as they provide:

  • Type Safety - Strong typing and compile-time checks
  • Automatic Authentication - Handles token management automatically
  • Retry Logic - Automatic retries with exponential backoff
  • Rate Limit Handling - Respects rate limits and retry-after headers
  • Better Developer Experience - Intuitive APIs and comprehensive documentation
  • Connection Pooling - Efficient HTTP connection management
  • Error Handling - Structured error types and clear error messages

Choose Your Language

Crates.io

cargo add ekodb_client

Resources:

Quick Start

use ekodb_client::Client;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Create client
let client = Client::builder()
.base_url("https://{YOUR_SUBDOMAIN}.{ENVIRONMENT}.{PROVIDER}.ekodb.io")
.api_key("your-api-key")
.build()?;

// Insert a record
let mut record = Record::new();
record.insert("name", "John Doe");
record.insert("email", "john@example.com");

let result = client.insert("users", record).await?;
println!("Inserted: {:?}", result);

Ok(())
}

Next Steps

Need Help?