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

`Generate` function signature doesn't match documentation #352

Closed cdelst closed 4 months ago

cdelst commented 4 months ago

Describe the bug I am reading https://github.com/go-jet/jet/wiki/Generator#generator-customization, trying to make a generator script with custom overrides for types, and the postgres.Generate function, as detailed in the docs, only has two parameters (destDir and dbConn), and not the third schemaInfo parameter.

I see that template.GenerateFiles may be what I want, but there should be a way to pass the overrideable schemaInfo into that function instead of re-writing it.

Environment (please complete the following information):

Code snippet image

Expected behavior I expect the documentation to match the implementation.

cdelst commented 4 months ago

Was using the non v2 version 🤦🏻