Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PgType2GoType = map[string]string{
"smallint": "int16",
"integer": "int32",
"bigint": "int64",
"int8": "int64",
"int2": "int16",
"int4": "int32",
"real": "float32",
"double precision": "float64",
"boolean": "bool",
"bool": "bool",
"bytea": "[]byte",
"varchar": "string",
"json": "string",
"character varying": "string",
"character": "string",
"text": "string",
"uuid": "string",
"inet": "string",
"macaddr": "string",
"timestamp": "time.Time",
"timestamptz": "time.Time",
"date": "time.Time",
"interval": "time.Duration",
"jsonb": "map[string]interface{}",
}
Functions ¶
This section is empty.
Types ¶
type PgGenerator ¶
type PgGenerator struct{}
func NewPgParser ¶
func NewPgParser() *PgGenerator
func (*PgGenerator) Run ¶
func (p *PgGenerator) Run() error
Click to show internal directories.
Click to hide internal directories.