pgsql

package
v0.0.0-...-3a91a05 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gen

type Gen struct {
	Source string // 连接字符串
	// contains filtered or unexported fields
}

PostgreSQL数据库代码生成器

func New

func New(host string, port int, user, auth, dbname string, ignores []string) *Gen

func (*Gen) Tables

func (g *Gen) Tables() (ret []schema.Table, err error)

func (*Gen) TypeMapping

func (g *Gen) TypeMapping(_type string) schema.Type

Postgresql类型映射的Golang数据类型

参考:http://www.postgres.cn/docs/12/
     http://www.postgres.cn/docs/12/datatype.html

Jump to

Keyboard shortcuts

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