Conversation
|
This is incredible! It is a testament to the architecture how trivial this was to set up. At $COMPANY, we rely heavily on code generation for our Typescript and Go base models (~100 tables). Our architecture is basically this pipeline (collectively called "sync schema")
This change could completely replace Anyway, that's a long winded -hell ya! And I also think this change will inspire someone (maybe me?) to just knock out this 2 year old issue. #296 |
That's great to hear. Once this is merged, I'd love to hear if it's working out for you.
There shouldn't anything blocking you (or anyone else) on implementing codegen for another language. The internal codegen interface is now stable. You can use this PR as a template for adding others. |
Inspired by @skabbes here #1470 (comment)
Add a
jsonoption to the codegen output. You'll need to use version 2 of the configuration file. You can configure the output path using theoutoption.{ "version": "2", "sql": [ { "schema": "postgresql/schema.sql", "queries": "postgresql/query.sql", "engine": "postgresql", "gen": { "json": { "out": "gen", "indent": " " } } } ] }