The runtimedb API (`PUT /v1/datasets/{id}`) accepts `pinned_version` (with explicit `null` to unpin), but the CLI's `hotdata datasets update` only exposes `--label` and `--table-name`. Scoped out of #65 to keep that PR focused on the rename use case.
Proposal
Two mutually-exclusive flags:
- `--pinned-version ` — pin to version N
- `--unpin` — remove existing pin (sends JSON `null`)
Wire them through `datasets::update` into the request body. The runtimedb side already has the validation (rejects pin changes that would invalidate existing indexes — see `PinChangeRejectedByIndexes` in `runtimedb/src/engine/datasets.rs`).
Notes
The runtimedb API (`PUT /v1/datasets/{id}`) accepts `pinned_version` (with explicit `null` to unpin), but the CLI's `hotdata datasets update` only exposes `--label` and `--table-name`. Scoped out of #65 to keep that PR focused on the rename use case.
Proposal
Two mutually-exclusive flags:
Wire them through `datasets::update` into the request body. The runtimedb side already has the validation (rejects pin changes that would invalidate existing indexes — see `PinChangeRejectedByIndexes` in `runtimedb/src/engine/datasets.rs`).
Notes