forked from jackc/pgx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
decimal.go
31 lines (23 loc) · 766 Bytes
/
decimal.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package pgtype
type Decimal Numeric
func (dst *Decimal) Set(src interface{}) error {
return (*Numeric)(dst).Set(src)
}
func (dst *Decimal) Get() interface{} {
return (*Numeric)(dst).Get()
}
func (src *Decimal) AssignTo(dst interface{}) error {
return (*Numeric)(src).AssignTo(dst)
}
func (dst *Decimal) DecodeText(ci *ConnInfo, src []byte) error {
return (*Numeric)(dst).DecodeText(ci, src)
}
func (dst *Decimal) DecodeBinary(ci *ConnInfo, src []byte) error {
return (*Numeric)(dst).DecodeBinary(ci, src)
}
func (src *Decimal) EncodeText(ci *ConnInfo, buf []byte) ([]byte, error) {
return (*Numeric)(src).EncodeText(ci, buf)
}
func (src *Decimal) EncodeBinary(ci *ConnInfo, buf []byte) ([]byte, error) {
return (*Numeric)(src).EncodeBinary(ci, buf)
}