-
Notifications
You must be signed in to change notification settings - Fork 0
/
gnorm.toml
50 lines (34 loc) · 1.53 KB
/
gnorm.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# !!!! YOU NEED TO CHANGE THIS !!!!
# This is the connection string for your database
ConnStr = "dbname=gnorm-db host=127.0.0.1 sslmode=disable user=gnorm-user"
DBType = "postgres"
Schemas = ["public","product_catalog"]
# PostRun = []
NameConversion = "{{pascal .}}"
# This will output the files in a subdirectory called "gnorm". You can change
# this, but if you do, change the RootPkg definition below to match what the
# package name should be.
OutputDir = "./generated"
ExcludeTables = ["schema_version"]
# PluginDirs = []
# TemplateEngine, if specified, describes a command line tool to run to
# render your templates, allowing you to use your preferred templating
# engine. If not specified, go's text/template will be used to render.
[TemplateEngine]
# CommandLine is the command to run to render the template. You may
# pass the following variables to the command line -
# {{.Data}} the name of a .json file containing the gnorm data serialized into json
# {{.Template}} - the name of the template file being rendered
# {{.Output}} the target file where output should be written
CommandLine = ["yasha", "-v", "{{.Data}}", "{{.Template}}", "-o", "{{.Output}}"]
# If true, the json data will be sent via stdin to the rendering tool.
UseStdin = false
# If true, the standard output of the tool will be written to the target file.
UseStdout = false
[Params]
[SchemaPaths]
[TablePaths]
"{{toLower .Schema}}/{{toLower .Table}}/{{toLower .Table}}.html" = "tables.j2"
[EnumPaths]
[TypeMap]
[NullableTypeMap]