Skip to main content

Crate ailake_store

Crate ailake_store 

Source
Expand description

ailake-store — object storage abstraction

Thin wrapper over object_store crate. The get_range method is critical for partial S3 reads of the HNSW footer.

§Quick start

Use store_from_url for env-based auth, or the typed builders for explicit credentials:

// URL-based (env credentials)
let store = ailake_store::store_from_url("s3://my-bucket/warehouse/my_table")?;

// Explicit static credentials (dev / CI)
use ailake_store::s3::{s3_store, S3Config, S3Credentials};
let store = s3_store(S3Config {
    bucket: "my-bucket".into(),
    region: "us-east-1".into(),
    endpoint: None,
    allow_http: false,
    credentials: S3Credentials::Static {
        access_key_id: "AKIA...".into(),
        secret_access_key: "secret".into(),
        session_token: None,
    },
}, "warehouse/my_table/")?;

Re-exports§

pub use from_url::store_from_url;
pub use local::LocalStore;
pub use object_store_backend::ObjectStoreBackend;
pub use store::Store;

Modules§

from_url
local
object_store_backend
store