@joshtriedcoding fr this could fix me sqlite and redis are the only things I wanna use ever (i don't have users)
@joshtriedcoding we tried something similar, but different before you joined maybe it's useful github.com/upstash/query
@joshtriedcoding Does it use StandardSchema.dev?
@joshtriedcoding i like it, but the .merge() feels weird
@joshtriedcoding Type safety and Redis, an interesting pairing. Could this improve reliability and catch errors earlier?
@joshtriedcoding Yes! How would you handle schema/data migrations over time? If you don't need runtime introspection, you could base it on Standard Schema to make it agnostic to the validation library. Although Zod codecs would make it trivial to store non-JSON.stringifyable data types.
@joshtriedcoding If it would support standard schema, so you would be free to use zod/arktype/valibot
@joshtriedcoding Ok on another note, what service did you use to make this code snippet? Because it doesn't look like the two I found (carbon and ray). It looks better.
@joshtriedcoding Uh… yes? Amazing… but like when did this get made?
@joshtriedcoding redis on upstash is far better than redis itself!
@joshtriedcoding oh no... someone make react query for redis
@joshtriedcoding Okey I’m listening, tell me more …
@joshtriedcoding This is awesome dude! I've been working with redis and it's a pain to manually setup all the types because the official client is so bad. Would be great to have typesafety with redis search as well, (yk the `ft` commands)
@joshtriedcoding Don’t think it’s something I need at the moment (Python be) and Nextjs fe but have to admit my head is spinning. For real there aren’t many options that do this already??
@joshtriedcoding This is a fantastic idea. Bringing Zod's schema validation to Redis solves a major pain point. I'm curious how you'd handle more complex transactions or Lua scripts while keeping everything type-safe. Seems like a great direction.
@joshtriedcoding Yeah, this is nice. I probably end up making this type of abstraction every time I'm working with Redis anyway haha
@joshtriedcoding Why would it have to be based on upstash redis …it could just be agnostic…?