pgxutils

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ERRCODE_INVALID_PASSWORD                    = "28P01" // worng password
	ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION = "28000" // db does not exist
)
View Source
const (
	QUERY_READ          = iota
	QUERY_WRITE         = iota
	QUERY_MODIFY_SCHEMA = iota
	QUERY_UNKOWN        = -1
)
View Source
const (
	LtreeOID = 16411
)

Variables

This section is empty.

Functions

func FieldType

func FieldType(fd pgproto3.FieldDescription) reflect.Type

func GetPSQLQueryType

func GetPSQLQueryType(query string) (queryType int, isReturningRows bool)

func PgSqlRowsToJson

func PgSqlRowsToJson(rows pgx.Rows) ([]string, []map[string]interface{})

func QueryToDataModel

func QueryToDataModel(fieldQueryData []map[string]interface{}, constraintsQueryData []map[string]interface{}) []map[string]interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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