From 0db817644518fd3c7ce6dab2f5931dc652e9d4fb Mon Sep 17 00:00:00 2001 From: Jack Ye Date: Thu, 22 Jan 2026 13:17:03 -0800 Subject: [PATCH] test: fix failing remote doctest reference to aws feature (#2935) Closes https://github.com/lancedb/lancedb/issues/2933 --- rust/lancedb/src/lib.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/rust/lancedb/src/lib.rs b/rust/lancedb/src/lib.rs index 2fddaa8a1..64699cb15 100644 --- a/rust/lancedb/src/lib.rs +++ b/rust/lancedb/src/lib.rs @@ -51,17 +51,15 @@ //! - `s3://bucket/path/to/database` or `gs://bucket/path/to/database` - database on cloud object store //! - `db://dbname` - Lance Cloud //! -//! You can also use [`ConnectOptions`] to configure the connection to the database. +//! You can also use [`ConnectBuilder`] to configure the connection to the database. //! //! ```rust -//! use object_store::aws::AwsCredential; //! # tokio::runtime::Runtime::new().unwrap().block_on(async { //! let db = lancedb::connect("data/sample-lancedb") -//! .aws_creds(AwsCredential { -//! key_id: "some_key".to_string(), -//! secret_key: "some_secret".to_string(), -//! token: None, -//! }) +//! .storage_options([ +//! ("aws_access_key_id", "some_key"), +//! ("aws_secret_access_key", "some_secret"), +//! ]) //! .execute() //! .await //! .unwrap();