surrealdb-client-generator icon indicating copy to clipboard operation
surrealdb-client-generator copied to clipboard

Tool which generates a typescript client for SurrealDB and zod schema of a given database

Results 9 surrealdb-client-generator issues
Sort by recently updated
recently updated
newest added

I've been attempting to use the SurrealDB Schema Generator to generate zod schemas and TypeScript clients for my SurrealDB database. While the generator works flawlessly when using the `"memory"` connection...

Hi @sebastianwessel ! I'm back after a bit more than a month out. It's good to see you have pushed some changes! --- `v1.0.0-beta.19` has renamed its package name: https://github.com/surrealdb/surrealdb.js/releases/tag/v1.0.0-beta.19

Allow users to set the name for the __generated folder using surql-gen.json

The JS SDK adds the `s` parameter to all parameters provided as a string; this prevents Surreal from inferring types and forces a difference between the input and output schemas...

### Note for Private Registry Users: If you're using a private registry, you’ll need to configure Testcontainers to pull the Ryuk image from your internal registry. You can do this...

The surql-gen tool currently lacks support for generating Zod schemas that enforce a field's value to be within a specific set of numbers (numeric enums). This is essential for cases...

enhancement

I'm encountering an issue where the `surql-gen` tool inconsistently applies `z.enum([...])`/`z.enum([...]).optional()` in the generated zod schemas based on surrealdb defs. Specifically, in some cases, the tool correctly generates the enum...

bug