-
Notifications
You must be signed in to change notification settings - Fork 128
/
xid8.go
45 lines (33 loc) · 1020 Bytes
/
xid8.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package types
import (
"database/sql/driver"
"github.com/jackc/pgtype"
)
type XID8 pguint64
func (xid8 *XID8) Set(src interface{}) error {
return (*pguint64)(xid8).Set(src)
}
func (xid8 XID8) Get() interface{} {
return (pguint64)(xid8).Get()
}
func (xid8 *XID8) AssignTo(dst interface{}) error {
return (*pguint64)(xid8).AssignTo(dst)
}
func (xid8 *XID8) DecodeText(ci *pgtype.ConnInfo, src []byte) error {
return (*pguint64)(xid8).DecodeText(ci, src)
}
func (xid8 *XID8) DecodeBinary(ci *pgtype.ConnInfo, src []byte) error {
return (*pguint64)(xid8).DecodeBinary(ci, src)
}
func (xid8 XID8) EncodeText(ci *pgtype.ConnInfo, buf []byte) ([]byte, error) {
return (pguint64)(xid8).EncodeText(ci, buf)
}
func (xid8 XID8) EncodeBinary(ci *pgtype.ConnInfo, buf []byte) ([]byte, error) {
return (pguint64)(xid8).EncodeBinary(ci, buf)
}
func (xid8 *XID8) Scan(src interface{}) error {
return (*pguint64)(xid8).Scan(src)
}
func (xid8 XID8) Value() (driver.Value, error) {
return (pguint64)(xid8).Value()
}