type github.com/jackc/pgx/v5/pgtype.Int2
14 uses
github.com/jackc/pgx/v5/pgtype (current package)
int.go#L23: type Int2 struct {
int.go#L29: func (dst *Int2) ScanInt64(n Int8) error {
int.go#L31: *dst = Int2{}
int.go#L41: *dst = Int2{Int16: int16(n.Int64), Valid: true}
int.go#L47: func (n Int2) Int64Value() (Int8, error) {
int.go#L52: func (dst *Int2) Scan(src any) error {
int.go#L54: *dst = Int2{}
int.go#L85: *dst = Int2{Int16: int16(n), Valid: true}
int.go#L91: func (src Int2) Value() (driver.Value, error) {
int.go#L99: func (src Int2) MarshalJSON() ([]byte, error) {
int.go#L107: func (dst *Int2) UnmarshalJSON(b []byte) error {
int.go#L115: *dst = Int2{}
int.go#L117: *dst = Int2{Int16: *n, Valid: true}
pgtype_default.go#L224: registerDefaultPgTypeVariants[Int2](defaultMap, "int2")
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)