go-jet / jet

Type safe SQL builder with code generation and automatic query result data mapping
Apache License 2.0
2.52k stars 118 forks source link

Invoke generator programmatically. #306

Closed chakrit closed 8 months ago

chakrit commented 8 months ago

Is your feature request related to a problem? Please describe. The generator is only available to command line users. It'd be nice if it could be programmatically invoked as well for other CLI programs that work with the database.

I took a look at the code and there's not really a ton of things being done in /cmd/jet/main.go, just needs to move things around a little.

Describe the solution you'd like

chakrit commented 8 months ago

Just saw this on the wiki https://github.com/go-jet/jet/wiki/Generator#generating-from-the-code so closing this, for now.