mirror of
https://github.com/beego/bee.git
synced 2024-11-25 09:50:55 +00:00
support for json type
This commit is contained in:
parent
e667c0fdaa
commit
1fd0e0860b
@ -129,6 +129,7 @@ var typeMappingPostgres = map[string]string{
|
|||||||
"ARRAY": "string", // array
|
"ARRAY": "string", // array
|
||||||
"USER-DEFINED": "string", // user defined
|
"USER-DEFINED": "string", // user defined
|
||||||
"uuid": "string", // uuid
|
"uuid": "string", // uuid
|
||||||
|
"json": "string", // json
|
||||||
}
|
}
|
||||||
|
|
||||||
// Table represent a table in a database
|
// Table represent a table in a database
|
||||||
@ -920,7 +921,7 @@ func isSQLBitType(t string) bool {
|
|||||||
return t == "bit"
|
return t == "bit"
|
||||||
}
|
}
|
||||||
func isSQLStrangeType(t string) bool {
|
func isSQLStrangeType(t string) bool {
|
||||||
return t == "interval" || t == "uuid"
|
return t == "interval" || t == "uuid" || t == "json"
|
||||||
}
|
}
|
||||||
|
|
||||||
// extractColSize extracts field size: e.g. varchar(255) => 255
|
// extractColSize extracts field size: e.g. varchar(255) => 255
|
||||||
|
Loading…
Reference in New Issue
Block a user