Comments (5)
I meant adding CopyObject support to ObjectStore itself. A rename is just a copy followed by a delete.
Sounds good. I've started implementing that in #14. I will close #11.
from object_store_rs.
I'm a bit wary of exposing the clients used internally as I suspect we may want to change these down the line. Both Rusoto and cloud_storage are not official crates, with somewhat patchy support.
Perhaps we could add copy support directly to the trait, it seems like a reasonable addition to me?
from object_store_rs.
Perhaps we could add copy support directly to the trait, it seems like a reasonable addition to me?
As in, copy the client rather than returning a reference / shared pointer?
I'm a bit wary of exposing the clients used internally as I suspect we may want to change these down the line.
Yeah, I agree. The alternative would be crates should bring their object store extensions into this crate as optional features. So delta-rs would bring in the rename_noreplace()
method as an optional trait. In the S3 case, that might mean bringing over dynamodb lock, which may be more than you wish to accept (or maybe not!).
Or even a final alternative would be that in delta-rs we wrap the ObjectStore
implementors instead of using them directly.
from object_store_rs.
As in, copy the client rather than returning a reference / shared pointer?
I meant adding CopyObject
support to ObjectStore
itself. A rename is just a copy followed by a delete.
The alternative would be crates should bring their object store extensions into this crate as optional features
I think an optional feature that adds CreateIfNotExists and CopyIfNotExists operations would be really cool. It's a real pain that S3 doesn't natively support it, and if we can somehow hide that from users that would be awesome.
from object_store_rs.
In case of Adls Gen2 the *IfNotExist methods are natively supported. In delta-rs we also have an implementation for local file systems, which only on windows needs some extra care - I think... for blob and S3 afaik some external service is needed.
I'd be happy to contribute adls gen2 to this crate
from object_store_rs.
Related Issues (14)
- Extract Connection Limiting Logic out Of S3 HOT 1
- Move Away From SDKs HOT 4
- Implement copy_if_not_exists for GCP
- Implement copy_if_not_exists for AWS HOT 1
- Hard to discover github repository when looking at crates.io or rustdocs
- Support assuming roles directly when using AWS S3 HOT 2
- Remove next_token from ListResult HOT 3
- Propose donating object_store_rs to Apache Arrow project HOT 5
- Implement get_range for GCP
- OAuth emulation HOT 1
- Test fails on main on macos HOT 3
- Flaky test aws::tests::s3_test HOT 8
- AsyncWrite over multi-part upload HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from object_store_rs.