Rust SDK 0.6.0

Released .

Rust SDK 0.6.0 follows 0.5.2, 0.5.1, and 0.5.0 with server-assigned statement identifiers, typed regular-expression search index analyzers in Catalog definitions, and stricter statement submission validation. Rust 1.91.0 remains supported. For a new application, start with the Rust SDK guide.

What's new

  • Configure custom regular-expression search analyzers on Catalog columns with CatalogSearchAnalyzer, or leave analyzer as None to use the server's default tokenization pattern.
  • Use server-assigned statement IDs on StatementHandle::statement_id() and post-submission errors (Error::statement_id()), with with_max_elapsed(Duration) mapped directly to timeout_seconds and retryable submissions limited to validated HTTP 429 admission refusals.
  • Include the url 2.5.9+ dependency update from 0.5.1 addressing RUSTSEC-2026-0592.

Upgrade from 0.5

Update the dependency and commit Cargo.toml and Cargo.lock:

cargo add scopedb-client@0.6.0

Applications upgrading from 0.4 should first apply the 0.4-to-0.5 API migrations followed by the changes below.

Update statement identifiers, deadlines, and submission recovery

The server assigns each statement ID when accepting a submission. Client-supplied statement IDs and estimated execution limits are removed:

In 0.5In 0.6
statement.statement_id()handle.statement_id() after submit().await
statement.with_statement_id(id)Removed; read the server-assigned ID from StatementHandle
statement.with_max_estimated(duration)Removed; use with_max_elapsed(Duration) if a total deadline fits
error.statement_id() on failed submitNone; reconcile side effects unless error.is_retryable() is true

Statement::with_max_elapsed(Duration) sets the server's timeout_seconds deadline, covering queueing, preparation, and execution. If Statement::submit() (or the submission step of Statement::execute() or Client::query()) fails before receiving a valid status snapshot, Error::statement_id() returns None, and only validated HTTP 429 admission refusals report Error::is_retryable() == true. Once submission succeeds, StatementHandle::statement_id() and post-submission errors retain the server-assigned ID so you can resume waiting with Client::statement_handle().

Update Catalog search index analyzers

CatalogColumnIndex::analyzer changes from Option<String> to Option<CatalogSearchAnalyzer>:

In 0.5In 0.6
analyzer: None or analyzer: Some("log".into())analyzer: None
Raw JSON workarounds for custom regex patternsanalyzer: Some(CatalogSearchAnalyzer { patterns: vec![..] })

Leave analyzer as None to use the server's default tokenization pattern (omitting analyzer when applying the definition), or pass Some(CatalogSearchAnalyzer { patterns }) for custom regular-expression rules:

use scopedb_client::{CatalogColumnIndex, CatalogSearchAnalyzer};

let custom_search = CatalogColumnIndex {
    index_type: "search".to_string(),
    analyzer: Some(CatalogSearchAnalyzer {
        patterns: vec![r"[A-Za-z0-9_]+".to_string(), r"req-[0-9]+".to_string()],
    }),
};