Skip to content

Add storage options - #3

Merged
yuvalif merged 2 commits into
lancedb:mainfrom
yuvalif:add-storage-options
Dec 16, 2025
Merged

yuvalif merged 2 commits into
lancedb:mainfrom
yuvalif:add-storage-options

Conversation

@yuvalif

@yuvalif yuvalif commented Dec 8, 2025

Copy link
Copy Markdown
Collaborator

together with an example on how to use them for S3 endpoint

Signed-off-by: Yuval Lifshitz <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds storage options support to the LanceDB C bindings, enabling configuration of cloud storage backends such as S3. The implementation includes a new FFI function lancedb_connect_builder_storage_option that allows setting key-value storage options before executing a connection, along with a complete S3 example demonstrating its usage.

Key Changes:

  • Added lancedb_connect_builder_storage_option function in Rust FFI layer and C header
  • Provided comprehensive S3 example showing how to configure AWS credentials and endpoint
  • Updated dependencies (lancedb 0.22.1→0.22.3, arrow 55.1→56.2, rust-version 1.75.0→1.78.0)

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/connection.rs Added lancedb_connect_builder_storage_option FFI function with safety documentation and error handling
include/lancedb.h Added function declaration and documentation; marked lancedb_error_to_message as [[maybe_unused]]
examples/s3.cpp New example demonstrating S3 connection with storage options for endpoint, region, and credentials
Cargo.toml Version bump to 0.22.3, updated lancedb and arrow dependencies, bumped rust-version to 1.78.0
Cargo.lock Dependency lock file updates reflecting version changes
CMakeLists.txt Added build target for s3 example executable

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/connection.rs Resolved
Comment thread examples/s3.cpp Resolved
Comment thread examples/s3.cpp Resolved
fix double free issues with connection builder

Signed-off-by: Yuval Lifshitz <[email protected]>

@soumyakoduri soumyakoduri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am still not much familiar with Rust. But the overall code (esp., S3 connection handling) looks good to me.

@yuvalif
yuvalif requested a review from Copilot December 16, 2025 15:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/connection.rs Resolved
@yuvalif
yuvalif merged commit de398a3 into lancedb:main Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants