743b98b298
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
710 B
Go
32 lines
710 B
Go
package pgtype
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
type VarcharArray TextArray
|
|
|
|
func (dst *VarcharArray) ConvertFrom(src interface{}) error {
|
|
return (*TextArray)(dst).ConvertFrom(src)
|
|
}
|
|
|
|
func (src *VarcharArray) AssignTo(dst interface{}) error {
|
|
return (*TextArray)(src).AssignTo(dst)
|
|
}
|
|
|
|
func (dst *VarcharArray) DecodeText(src []byte) error {
|
|
return (*TextArray)(dst).DecodeText(src)
|
|
}
|
|
|
|
func (dst *VarcharArray) DecodeBinary(src []byte) error {
|
|
return (*TextArray)(dst).DecodeBinary(src)
|
|
}
|
|
|
|
func (src *VarcharArray) EncodeText(w io.Writer) (bool, error) {
|
|
return (*TextArray)(src).EncodeText(w)
|
|
}
|
|
|
|
func (src *VarcharArray) EncodeBinary(w io.Writer) (bool, error) {
|
|
return (*TextArray)(src).encodeBinary(w, VarcharOid)
|
|
}
|