@@ -13,20 +13,14 @@ It's the directory or cloud bucket that you pass when initializing a LaminDB ins
13
13
lamin init --storage ./default-storage # or s3://default-bucket or gs://default-bucket
14
14
```
15
15
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 ` ):
17
17
18
18
``` python
19
19
import lamindb as ln
20
20
ln.settings.storage # set via ln.settings.storage = "s3://other-bucket"
21
21
# > s3://default-bucket
22
22
```
23
23
24
- You can also change it using the CLI via
25
-
26
- ```
27
- lamin set --storage s3://other-bucket
28
- ```
29
-
30
24
## Where is my SQLite file?
31
25
32
26
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
132
126
133
127
## How do I version a file?
134
128
135
- You use the ` is_new_version_of ` parameter:
129
+ You use the ` revises ` parameter:
136
130
137
131
``` python
138
- new_artifact = ln.Artifact(df, is_new_version_of = old_file)
132
+ new_artifact = ln.Artifact(df, revises = old_file)
139
133
```
140
134
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 ` :
144
136
145
137
``` 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 " )
147
139
```
148
140
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 ` .
150
142
151
143
## How to set up a public read-only instance on an s3 bucket?
152
144
0 commit comments