Skip to content

Commit 17be39e

Browse files
authored
feat: expose storage options in dataset (#5016)
1 parent bd5edc9 commit 17be39e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

rust/lance/src/dataset.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,6 +1416,13 @@ impl Dataset {
14161416
&self.object_store
14171417
}
14181418

1419+
/// Returns the storage options used when opening this dataset, if any.
1420+
pub fn storage_options(&self) -> Option<&HashMap<String, String>> {
1421+
self.store_params
1422+
.as_ref()
1423+
.and_then(|params| params.storage_options.as_ref())
1424+
}
1425+
14191426
pub fn data_dir(&self) -> Path {
14201427
self.base.child(DATA_DIR)
14211428
}

0 commit comments

Comments
 (0)