Athena

Athena RS SDK

Rust AthenaClient builder and typed gateway execution flows.

Athena RS exposes AthenaClient in src/client/ for Rust-native integration.

Core Capabilities

  • Builder-driven initialization (AthenaClient::builder())
  • Typed CRUD + SQL + RPC request builders
  • Route parity with canonical gateway constants
  • Backend-aware execution support

Example

use athena_rs::client::AthenaClient;

let client = AthenaClient::builder()
    .base_url("http://localhost:4052")
    .api_key("ath_xxx.yyy")
    .build()
    .await?;

let rows = client
    .fetch("gateway_operation_log")
    .limit(10)
    .execute()
    .await?;

let sql = client
    .execute_sql("select now() as current_time")
    .await?;

Supported Query Operators

  • eq, neq, gt, gte, lt, lte, in, like, ilike, is
  • Ordering and pagination (order_by, limit, offset)

Validation Coverage

Athena RS gateway usage is covered by end-to-end test suites that verify route mapping and behavior across core operations.