denoland / denoland/deploy_feedback

[KV Feedback]:

Open
#404 1 comment 0 reactions 0 assignees View on GitHub
kv
Dominant language
No language data
Stars
79
Forks
5
PR merge metrics
No merged PRs in 30d

Description

### 🔍

- [X] Did you search for existing issues?

### Type of feedback

Feature request

### Description

I used KV locally in the project https://github.com/sgohlke/deno-kv-test and it was easy to use it within Deno Deploy. I added the project from the repository and KV worked out of the box as I would have expected it. In the second project it also worked fine.

I stored a JSON object in both cases. While I was able to see the full object in the first one in the second the entry was to long to display so "..." appeared to show the rest in a popup/overlay. I think this might be difficult to read if the object gets bigger, I would prefer some "view value" functionality to display the value (e.g. in a new mask or text area).

It is possible to use KV.list to iterate through the entries but I think it would be nice to have a function like "getAll" to get all entries. Example/Use case: Use `KV.get(['products', id])` to return specific product, use `KV.getAll(['products']).map(entry => entry.value)` to return all products.

Potential new features:

- Database "manager" to perform CRUD operations (or reset functionality described in https://github.com/denoland/deploy_feedback/issues/378 to delete test values)
- Extend input key search to be able to query data (e.g. get all products with category='clothing')
- KV function like KV.incr() to increment a value/number (e.g. increase user counter, increase "thank you" counter by 1).

### Steps to reproduce (if applicable)

_No response_

### Expected behavior (if applicable)

_No response_

### Possible solution (if applicable)

_No response_

### Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.