Repository navigation
Add storage options - #3
Conversation
Signed-off-by: Yuval Lifshitz <[email protected]>
There was a problem hiding this comment.
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_optionfunction 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.
fix double free issues with connection builder Signed-off-by: Yuval Lifshitz <[email protected]>
4c950c8 to
60abfe7
Compare
soumyakoduri
left a comment
There was a problem hiding this comment.
I am still not much familiar with Rust. But the overall code (esp., S3 connection handling) looks good to me.
There was a problem hiding this comment.
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.
together with an example on how to use them for S3 endpoint