Expand pgtype.Value interface
- Include and rename ConvertFrom to Set - Add Get - Include AssignTo
This commit is contained in:
+6
-2
@@ -7,8 +7,12 @@ import (
|
||||
|
||||
type Jsonb Json
|
||||
|
||||
func (dst *Jsonb) ConvertFrom(src interface{}) error {
|
||||
return (*Json)(dst).ConvertFrom(src)
|
||||
func (dst *Jsonb) Set(src interface{}) error {
|
||||
return (*Json)(dst).Set(src)
|
||||
}
|
||||
|
||||
func (dst *Jsonb) Get() interface{} {
|
||||
return (*Json)(dst).Get()
|
||||
}
|
||||
|
||||
func (src *Jsonb) AssignTo(dst interface{}) error {
|
||||
|
||||
Reference in New Issue
Block a user