postgresql

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL