pg

package
v0.0.0-...-5bb0c7b Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetItems

func GetItems(items []interface{}, countSqlClause, dataSqlClause string, params []interface{}, pageSize, pageIndex int, tx *sqlx.Tx) (totalCount int, err error)

func ToGoBool

func ToGoBool(v int8) bool

func ToPgBool

func ToPgBool(v bool) int8

Types

type Array

type Array []interface{}

func (*Array) From

func (p *Array) From(src interface{}) error

func (*Array) Scan

func (p *Array) Scan(src interface{}) error

func (Array) To

func (p Array) To(src interface{}) error

func (Array) Value

func (p Array) Value() (driver.Value, error)

type JsonbMap

type JsonbMap map[string]interface{}

func (*JsonbMap) From

func (p *JsonbMap) From(src interface{}) error

func (*JsonbMap) Scan

func (p *JsonbMap) Scan(src interface{}) error

func (*JsonbMap) To

func (p *JsonbMap) To(src interface{}) error

func (JsonbMap) Value

func (p JsonbMap) Value() (driver.Value, error)

type JsonbMapArray

type JsonbMapArray []map[string]interface{}

func (*JsonbMapArray) From

func (p *JsonbMapArray) From(src interface{}) error

func (*JsonbMapArray) Scan

func (p *JsonbMapArray) Scan(src interface{}) error

func (*JsonbMapArray) To

func (p *JsonbMapArray) To(src interface{}) error

func (JsonbMapArray) Value

func (p JsonbMapArray) Value() (driver.Value, error)

type String

type String string

func (*String) From

func (p *String) From(src interface{}) error

func (*String) Scan

func (p *String) Scan(src interface{}) error

func (String) To

func (p String) To(src interface{}) error

func (String) Value

func (p String) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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