2020-05-13 10:02:41 +02:00
|
|
|
# update
|
2019-10-03 13:24:28 +02:00
|
|
|
|
2020-05-13 10:02:41 +02:00
|
|
|
Updates an existing column on a table. First parameter is the column to update and the second parameter is the value to put.
|
2019-10-03 13:24:28 +02:00
|
|
|
|
2020-03-13 18:23:41 +01:00
|
|
|
## Examples
|
2019-10-03 13:24:28 +02:00
|
|
|
|
|
|
|
```shell
|
|
|
|
> ls
|
|
|
|
━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━┯━━━━━━━━━━┯━━━━━━━━┯━━━━━━━━━━━┯━━━━━━━━━━━
|
2020-03-13 18:23:41 +01:00
|
|
|
# │ name │ type │ readonly │ size │ accessed │ modified
|
2019-10-03 13:24:28 +02:00
|
|
|
───┼────────────────────────────┼──────┼──────────┼────────┼───────────┼───────────
|
2020-03-13 18:23:41 +01:00
|
|
|
0 │ zeusiscrazy.txt │ File │ │ 556 B │ a day ago │ a day ago
|
|
|
|
1 │ coww.txt │ File │ │ 24 B │ a day ago │ a day ago
|
|
|
|
2 │ randomweirdstuff.txt │ File │ │ 197 B │ a day ago │ a day ago
|
|
|
|
3 │ abaracadabra.txt │ File │ │ 401 B │ a day ago │ a day ago
|
|
|
|
4 │ youshouldeatmorecereal.txt │ File │ │ 768 B │ a day ago │ a day ago
|
2019-10-03 13:24:28 +02:00
|
|
|
━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━┷━━━━━━━━━━┷━━━━━━━━┷━━━━━━━━━━━┷━━━━━━━━━━━
|
2020-06-23 20:21:47 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
```shell
|
2020-05-13 10:02:41 +02:00
|
|
|
> ls | update modified neverrrr
|
2019-10-03 13:24:28 +02:00
|
|
|
━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━┯━━━━━━━━━━┯━━━━━━━━┯━━━━━━━━━━━┯━━━━━━━━━━
|
2020-03-13 18:23:41 +01:00
|
|
|
# │ name │ type │ readonly │ size │ accessed │ modified
|
2019-10-03 13:24:28 +02:00
|
|
|
───┼────────────────────────────┼──────┼──────────┼────────┼───────────┼──────────
|
2020-03-13 18:23:41 +01:00
|
|
|
0 │ zeusiscrazy.txt │ File │ │ 556 B │ a day ago │ neverrrr
|
|
|
|
1 │ coww.txt │ File │ │ 24 B │ a day ago │ neverrrr
|
|
|
|
2 │ randomweirdstuff.txt │ File │ │ 197 B │ a day ago │ neverrrr
|
|
|
|
3 │ abaracadabra.txt │ File │ │ 401 B │ a day ago │ neverrrr
|
|
|
|
4 │ youshouldeatmorecereal.txt │ File │ │ 768 B │ a day ago │ neverrrr
|
2019-10-03 13:24:28 +02:00
|
|
|
━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━┷━━━━━━━━━━┷━━━━━━━━┷━━━━━━━━━━━┷━━━━━━━━━━
|
|
|
|
```
|
|
|
|
|
|
|
|
```shell
|
|
|
|
> shells
|
|
|
|
━━━┯━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
2020-03-13 18:23:41 +01:00
|
|
|
# │ │ name │ path
|
2019-10-03 13:24:28 +02:00
|
|
|
───┼───┼────────────┼────────────────────────────────
|
2020-03-13 18:23:41 +01:00
|
|
|
0 │ X │ filesystem │ /home/username/stuff/expr/stuff
|
|
|
|
1 │ │ filesystem │ /
|
2019-10-03 13:24:28 +02:00
|
|
|
━━━┷━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
2020-06-23 20:21:47 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
```shell
|
2020-05-13 10:02:41 +02:00
|
|
|
> shells | update " " X | update path /
|
2019-10-03 13:24:28 +02:00
|
|
|
━━━┯━━━┯━━━━━━━━━━━━┯━━━━━━
|
2020-03-13 18:23:41 +01:00
|
|
|
# │ │ name │ path
|
2019-10-03 13:24:28 +02:00
|
|
|
───┼───┼────────────┼──────
|
2020-03-13 18:23:41 +01:00
|
|
|
0 │ X │ filesystem │ /
|
|
|
|
1 │ X │ filesystem │ /
|
2019-10-03 13:24:28 +02:00
|
|
|
━━━┷━━━┷━━━━━━━━━━━━┷━━━━━━
|
|
|
|
```
|
2020-10-02 03:13:42 +02:00
|
|
|
|
|
|
|
Collect all the values of a nested column and join them together
|
|
|
|
```shell
|
|
|
|
> version | update features {get features | str collect ', '}
|
|
|
|
───┬─────────┬──────────────────────────────────────────┬───────────────────────────
|
|
|
|
# │ version │ commit_hash │ features
|
|
|
|
───┼─────────┼──────────────────────────────────────────┼───────────────────────────
|
|
|
|
0 │ 0.20.0 │ fdab3368094e938c390f1e5a7892a42da45add3e │ default, clipboard, trash
|
|
|
|
───┴─────────┴──────────────────────────────────────────┴───────────────────────────
|