optimize grpc generation env check (#900)

* optimize grpc generation env check

* optimize grpc generation env check

* format code

* fix postgresql data type convert error

Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
This commit is contained in:
anqiansong
2021-08-13 11:47:42 +08:00
committed by GitHub
parent c6642bc2e6
commit dc43430812
4 changed files with 116 additions and 9 deletions

View File

@@ -8,12 +8,13 @@ import (
)
var p2m = map[string]string{
"int8": "bigint",
"numeric": "bigint",
"float8": "double",
"float4": "float",
"int2": "smallint",
"int4": "integer",
"int8": "bigint",
"numeric": "bigint",
"float8": "double",
"float4": "float",
"int2": "smallint",
"int4": "integer",
"timestamptz": "timestamp",
}
// PostgreSqlModel gets table information from information_schema、pg_catalog