1
0
mirror of https://github.com/beego/bee.git synced 2024-11-22 05:00:54 +00:00

add inet type for Postgres

This commit is contained in:
Sergey Lanzman 2016-12-12 22:34:13 +02:00
parent 2ff99d4ea7
commit b6d935523a

View File

@ -130,7 +130,8 @@ var typeMappingPostgres = map[string]string{
"USER-DEFINED": "string", // user defined "USER-DEFINED": "string", // user defined
"uuid": "string", // uuid "uuid": "string", // uuid
"json": "string", // json "json": "string", // json
"jsonb": "string", "jsonb": "string", // jsonb
"inet": "string", // ip address
} }
// Table represent a table in a database // Table represent a table in a database
@ -1148,7 +1149,7 @@ import (
"github.com/astaxie/beego" "github.com/astaxie/beego"
) )
// {{ctrlName}}Controller oprations for {{ctrlName}} // {{ctrlName}}Controller operations for {{ctrlName}}
type {{ctrlName}}Controller struct { type {{ctrlName}}Controller struct {
beego.Controller beego.Controller
} }