File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 15
15
package types
16
16
17
17
import (
18
+ "context"
18
19
"encoding/hex"
19
20
"errors"
20
21
@@ -26,11 +27,11 @@ type ExtendedType interface {
26
27
sql.Type
27
28
// SerializedCompare compares two byte slices that each represent a serialized value, without first deserializing
28
29
// the value. This should return the same result as the Compare function.
29
- SerializedCompare (v1 []byte , v2 []byte ) (int , error )
30
+ SerializedCompare (ctx context. Context , v1 []byte , v2 []byte ) (int , error )
30
31
// SerializeValue converts the given value into a binary representation.
31
- SerializeValue (val any ) ([]byte , error )
32
+ SerializeValue (ctx context. Context , val any ) ([]byte , error )
32
33
// DeserializeValue converts a binary representation of a value into its canonical type.
33
- DeserializeValue (val []byte ) (any , error )
34
+ DeserializeValue (ctx context. Context , val []byte ) (any , error )
34
35
// FormatValue returns a string version of the value. Primarily intended for display.
35
36
FormatValue (val any ) (string , error )
36
37
// MaxSerializedWidth returns the maximum size that the serialized value may represent.
You can’t perform that action at this time.
0 commit comments