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):
OS: macosx
Database: postgres
Database pq
Jet version 2.11.1
Code snippet
Expected behavior
I expect the documentation to match the implementation.
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
anddbConn
), and not the thirdschemaInfo
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
Expected behavior I expect the documentation to match the implementation.