Skip to main content

db-to-zod

Generate TypeScript + Zod schemas from SQL CREATE TABLE statements.

python -m src.cli schema.sql -o schema.ts

Input:

CREATE TABLE users (id INTEGER PRIMARY KEY, email VARCHAR(255) NOT NULL, full_name TEXT);

Output:

export const UsersSchema = z.object({ id: z.number().int(), email: z.string(), full_name: z.string().nullable().optional() });
export type Users = z.infer<typeof UsersSchema>;

Limitations: single-line column definitions, no enum/array/foreign-key awareness, unknown types fall back to z.string().

Metadata

Release files for db-to-zod 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for db-to-zod 1.0.0
File Size Uploaded Provenance Actions
db_to_zod-1.0.0.tar.gz 3.7 kB Without provenance Details for db_to_zod-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for db-to-zod 1.0.0
File Interpreter ABI Platform Actions
db_to_zod-1.0.0-py3-none-any.whl Python 3 none any Details for db_to_zod-1.0.0-py3-none-any.whl

Total release size: 8.2 kB

Release files / db_to_zod-1.0.0.tar.gz

Download URL db_to_zod-1.0.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
890051772904bda71649d86470ec82a8da479e9658359cc8a1222637ad26cbae
BLAKE2b-256 checksum
How to use checksums
3fb74533fd19d529e70d6dd20c7f334f83c57df28ada228897bcc30c03e51b50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / db_to_zod-1.0.0-py3-none-any.whl

Download URL db_to_zod-1.0.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f00575c88eba5175a3bb6061f2189945603343f7ba1a3bdd311856cb40116ae
BLAKE2b-256 checksum
How to use checksums
35ec028302a295dc45ab732c8415edcc53fb1c208162c79b0c7d4457adf4f451
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for db-to-zod 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page