pgx/pgtype/cidr_array.go
Jack Christensen 743b98b298 Name PG types as words
Though this doesn't follow Go naming conventions exactly it makes names more
consistent with PostgreSQL and it is easier to read. For example, TIDOID becomes
TidOid. In addition this is one less breaking change in the move to V3.
2017-03-11 17:03:23 -06:00

32 lines
686 B
Go

package pgtype
import (
"io"
)
type CidrArray InetArray
func (dst *CidrArray) ConvertFrom(src interface{}) error {
return (*InetArray)(dst).ConvertFrom(src)
}
func (src *CidrArray) AssignTo(dst interface{}) error {
return (*InetArray)(src).AssignTo(dst)
}
func (dst *CidrArray) DecodeText(src []byte) error {
return (*InetArray)(dst).DecodeText(src)
}
func (dst *CidrArray) DecodeBinary(src []byte) error {
return (*InetArray)(dst).DecodeBinary(src)
}
func (src *CidrArray) EncodeText(w io.Writer) (bool, error) {
return (*InetArray)(src).EncodeText(w)
}
func (src *CidrArray) EncodeBinary(w io.Writer) (bool, error) {
return (*InetArray)(src).encodeBinary(w, CidrOid)
}