type github.com/jackc/pgx/v5/pgtype.Int2
14 uses
github.com/jackc/pgx/v5/pgtype (current package)
int.go#L24: type Int2 struct {
int.go#L30: func (dst *Int2) ScanInt64(n Int8) error {
int.go#L32: *dst = Int2{}
int.go#L42: *dst = Int2{Int16: int16(n.Int64), Valid: true}
int.go#L48: func (n Int2) Int64Value() (Int8, error) {
int.go#L53: func (dst *Int2) Scan(src any) error {
int.go#L55: *dst = Int2{}
int.go#L86: *dst = Int2{Int16: int16(n), Valid: true}
int.go#L92: func (src Int2) Value() (driver.Value, error) {
int.go#L100: func (src Int2) MarshalJSON() ([]byte, error) {
int.go#L108: func (dst *Int2) UnmarshalJSON(b []byte) error {
int.go#L116: *dst = Int2{}
int.go#L118: *dst = Int2{Int16: *n, Valid: true}
pgtype_default.go#L222: registerDefaultPgTypeVariants[Int2](defaultMap, "int2")
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)