Commit 73d5c6c
docs(python): --generators takes one tier without the rest
An estate whose tables come from `meta migrate` and whose application code is
not generated at all still had 37 hard-coded table names and 16 column-name
reads across four services — exactly what `names` exists for. Nothing
documented that it can be taken on its own, so the reachable options looked
like "adopt the whole Python suite" or "keep the literals".
`--generators names` is that answer, and it is measured rather than asserted:
on the 16-entity persistence-conformance model the default suite emits 68 files
and this emits 19.
The `--column-naming` trap is stated with the consequence, because the default
differs from the tool that built the schema: `literal` here (matching this
port's ObjectManager) against `meta migrate`'s `snake_case`, so the default
emits `PROGRAM_PRICE_CENTS_COLUMN = "priceCents"` for a column named
`price_cents` — a constant naming a column that does not exist, which is worse
than the literal it replaced.
Every claim on the page was produced by running the command; the first draft
had two that the output contradicted (the map and schema constants are
entity-prefixed, and the schema constant only appears when the source declares
`@schema`).
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NTcEKXTQMYt84fAjuw5A2M1 parent 2005949 commit 73d5c6c
1 file changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
104 | 132 | | |
105 | 133 | | |
106 | 134 | | |
| |||
0 commit comments