pgorm

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenSql

func GenSql(name string, conf Conf, out string)

func IsExist

func IsExist(f string) bool

IsExist checks whether a file or directory exists. It returns false when the file or directory does not exist.

func PgTypeToGoType

func PgTypeToGoType(pgType string, columnName string) string

Types

type Conf

type Conf map[interface{}]interface{}

type DB

type DB struct {
	// contains filtered or unexported fields
}

func NewDb

func NewDb(conf map[interface{}]interface{}) *DB

func (*DB) GetDB added in v0.1.8

func (d *DB) GetDB() *sql.DB

Jump to

Keyboard shortcuts

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