Giter VIP home page Giter VIP logo

Comments (5)

wjones127 avatar wjones127 commented on June 5, 2024 1

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.

tustvold avatar tustvold commented on June 5, 2024

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.

wjones127 avatar wjones127 commented on June 5, 2024

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.

tustvold avatar tustvold commented on June 5, 2024

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.

roeap avatar roeap commented on June 5, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.