Generate Ent schemas from your existing SQL files.
This tool was created for internal use at my company. It may contain bugs and lacks some features, but I hope you find it useful.
go install github.com/panotza/pg2ent@mainpg2ent reads its configuration from a YAML file named pg2ent.yaml. You can find an example in the examples directory. After you finish configuring, run:
pg2ent- Parsing SQL function arguments
- Generating Ent edges