mirror of
https://github.com/jackc/pgx.git
synced 2025-05-23 16:01:06 +00:00
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.
32 lines
686 B
Go
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)
|
|
}
|