gnorm
gnorm copied to clipboard
Build instructions don't match the source code
getting started says:
run
gnorm init
to get a defaultgnorm.toml
file and template files in the current directory. You need to at least set theConnStr
,DBType
, andSchemas
values... Now, to test your configuration, rungnorm preview
. This will query your database and spit out all the information Gnorm knows about your database, including schema names, table names, column info, custom types, etc. in a nice tabular format.
This does not work because gnorm init
creates templates in a directory called templates
, with the extension .gotmpl
, but the config file it creates expects them to be in testdata/<template>.tpl
.
Either the documentation should be updated to tell users to modify the template path in their config, or (preferably) the config file should point at the correct filenames generated by gnorm init