Prisma-like ORM built on top of Deno KV. Allows you to write your database schemas and relations using Zod schemas, and run queries using familiar syntax from Prisma.
For more context, view discussions at #4 Basically, currently, if we have ```typescript const User = z.object({ email: z.string().describe('index') }) ``` It will use keys such as `user_by_email` / `(email)` -> `User` Which is fine for unique keys like `email`, but if we want something like the following, it doesnt work; ```typescript const User = z.object({ favoriteColor: z.string().describe('index') }) ``` Because then we will have It will use keys such as `user_by_favoriteColor` / `(favorite color)` -> `User` Which will be overwritten every time a new user is created. To solve this, we need to just add one more key part if the index is not unique, like the following: [From Deno's Docs](https://deno.com/[email protected]/runtime/kv/secondary_indexes) ```typescript const byColorKey = ["users_by_favorite_color", user.favoriteColor, user.id]; ```
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by skoshx and has received 0 comments.