jetzig-framework / jetzig

Jetzig is a web framework written in Zig
MIT License
515 stars 24 forks source link

Add list API to KVStore #92

Open jiacai2050 opened 2 months ago

jiacai2050 commented 2 months ago

I create some demo app in jetzig, it seems the File KVStore is right place to persist user data before #43 is supported.

I can add, delete data using KVStore, but it seems there is no way to fetch all items stored in KVStore, what's the recommended way to implement this?

bobf commented 2 months ago

Hi, @jiacai2050 , sorry for the slow response. There isn't a direct way to do this at the moment as it is not typically the kind of thing KV stores are used for. I might add it in future, but I think database integration would be your best option when it is ready - hopefully that will be very soon. I noticed you're on our Discord server so keep an eye out for updates in next couple of weeks.

jiacai2050 commented 2 months ago

Thanks, it seems JetZig is a very opinionated web framework, users can't do anything the framework isn't designed for.

I'm curious which framework does JetZig refer to when get started?