Skip to content

Commit ca7ddbc

Browse files
authored
📝 Fix legacy material in the storage FAQ (#145)
Fix legacy material in the storage FAQ
1 parent f92ba92 commit ca7ddbc

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

docs/faq/storage.md

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,14 @@ It's the directory or cloud bucket that you pass when initializing a LaminDB ins
1313
lamin init --storage ./default-storage # or s3://default-bucket or gs://default-bucket
1414
```
1515

16-
It's easiest to see and update default storage in the Python API ({attr}`~lamindb.core.Settings.storage`):
16+
You can see and update default storage like so ({attr}`~lamindb.core.Settings.storage`):
1717

1818
```python
1919
import lamindb as ln
2020
ln.settings.storage # set via ln.settings.storage = "s3://other-bucket"
2121
#> s3://default-bucket
2222
```
2323

24-
You can also change it using the CLI via
25-
26-
```
27-
lamin set --storage s3://other-bucket
28-
```
29-
3024
## Where is my SQLite file?
3125

3226
The SQLite file is in the default storage location of the instance and called: `f"{instance_name}.lndb"`
@@ -132,21 +126,19 @@ file.save() # save the change to the database
132126

133127
## How do I version a file?
134128

135-
You use the `is_new_version_of` parameter:
129+
You use the `revises` parameter:
136130

137131
```python
138-
new_artifact = ln.Artifact(df, is_new_version_of=old_file)
132+
new_artifact = ln.Artifact(df, revises=old_file)
139133
```
140134

141-
Then, `new_artifact` automatically has the `version` field set, incrementing the version number by one.
142-
143-
You can also pass a custom version:
135+
or you pass a `key`:
144136

145137
```python
146-
new_artifact = ln.Artifact(df, version="1.1", is_new_version_of=old_file)
138+
new_artifact = ln.Artifact(df, key="my_dataset.parquet")
147139
```
148140

149-
It doesn't matter which old version of the file you use, any old version is good!
141+
The new artifact becomes the latest version of family of artifacts that has the same `key`.
150142

151143
## How to set up a public read-only instance on an s3 bucket?
152144

0 commit comments

Comments
 (0)