UNPKG

zod-dbs

Version:

Opinionated Zod schema generator for databases

27 lines (19 loc) 533 B
# zod-dbs A 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 ## Installation ```bash npm install zod-dbs zod-dbs-[provider] ``` ## Usage ```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 }, }); ```