orm-gen

command
v0.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

orm-gen errors: docs/spec/errors.yaml → one constants file per language, so every client names the same codes (docs/plans/execution/checklist.md T5.2). The yaml is a flat list; no YAML library is needed.

orm-gen errors --lang go --out packages/go/orm/codes.go
orm-gen errors --lang php --out packages/php/src/Code.php
orm-gen errors --lang php-extension --out packages/php-ext/src/polyspec_orm.stub.php
orm-gen errors --lang rust --out packages/rust/orm/src/codes.rs
orm-gen errors --lang typescript --out packages/ts/src/codes.ts
orm-gen errors --lang python --out packages/python/src/polyspec/orm/codes.py

orm-gen makes Go models from a dbspec document set and, from docs/spec/errors.yaml, each language's error code file.

orm-gen gen --set <dbspec-set.json> --lang go --out <directory> [--scan <package pattern>...] [--check]
orm-gen errors --lang go|php|rust|typescript|python --out <file> [--yaml docs/spec/errors.yaml]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL