skymethod / denoflare

Develop, test, and deploy Cloudflare Workers with Deno.
https://denoflare.dev
MIT License
692 stars 33 forks source link

no KV? #39

Open augustblack opened 1 year ago

augustblack commented 1 year ago

Hi,

Seeing that there are config options for KV, I assumed denoflare supported it.

I gave it a simple test but get RpcKVNamespace.put not implemented.

Looking at the code, I see that get is partially implemented, but put, list, delete, etc are empty.

Is that correct?

johnspurlock-skymethod commented 1 year ago

Do you mean in serve for local testing? Yea it looks like put, delete, and list are not implemented yet. Would need to be wired up to the corresponding api calls in api_kv_namespace.ts, then threaded over rpc in rpc_kv_namespace.ts

Happy to accept a small PR that implements it, or I could take a look myself if you sent a project donation via Support this project