Opinionated Zod schema generator for databases
npm install zod-dbsA library for generating Zod schemas from database schemas.
Read the full documentation for usage details using the cli which wraps this library.
https://github.com/msunbay/zod-dbs
``bash`
npm install zod-dbs zod-dbs-[provider]
`ts
import { generateZodSchemas } from 'zod-dbs';
import { createProvider } from 'zod-dbs-[provider]';
await generateZodSchemas({
provider: createProvider(),
config: {
// See the project and provider documentation for available options
},
});
``