MCPcopy Create free account
hub / github.com/apache/datafusion / with_bytes

Method with_bytes

datafusion/core/tests/datasource/object_store_access.rs:975–983  ·  view source on GitHub ↗

Store the specified bytes at the given path

(self, path: &str, bytes: impl Into<Bytes>)

Source from the content-addressed store, hash-verified

973
974 /// Store the specified bytes at the given path
975 async fn with_bytes(self, path: &str, bytes: impl Into<Bytes>) -> Self {
976 let path = Path::from(path);
977 self.object_store
978 .inner
979 .put(&path, PutPayload::from(bytes.into()))
980 .await
981 .unwrap();
982 self
983 }
984
985 /// Register a CSV file at the given path
986 async fn register_csv(self, table_name: &str, path: &str) -> Self {

Calls 2

putMethod · 0.45
intoMethod · 0.45

Tested by

no test coverage detected