-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgentool.yaml.example
More file actions
22 lines (22 loc) · 854 Bytes
/
gentool.yaml.example
File metadata and controls
22 lines (22 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
version: "0.1"
database:
# consult[https://gorm.io/docs/connecting_to_the_database.html]"
dsn : "user:pass@host:port/db-name?connection_limit=1&pool_timeout=0"
# input mysql or postgres or sqlite or sqlserver. consult[https://gorm.io/docs/connecting_to_the_database.html]
db : "postgres"
# enter the required data table or leave it blank.You can input : orders,users,goods
tables : ""
# specify a directory for output
outPath : "./dao/query"
# query code file name, default: gen.go
outFile : ""
# generate unit test for query code
withUnitTest : false
# generated model code's package name
modelPkgName : ""
# generate with pointer when field is nullable
fieldNullable : false
# generate field with gorm index tag
fieldWithIndexTag : false
# generate field with gorm column type tag
fieldWithTypeTag : false