Skip to content

Commit a3d336d

Browse files
authored
Merge pull request #2854 from dolthub/nicktobey/textindex
Allow primary keys to contain address columns sorted by their resolved values.
2 parents c799663 + e4840a9 commit a3d336d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sql/types/extended.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
package types
1616

1717
import (
18+
"context"
1819
"encoding/hex"
1920
"errors"
2021

@@ -26,11 +27,11 @@ type ExtendedType interface {
2627
sql.Type
2728
// SerializedCompare compares two byte slices that each represent a serialized value, without first deserializing
2829
// 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)
3031
// SerializeValue converts the given value into a binary representation.
31-
SerializeValue(val any) ([]byte, error)
32+
SerializeValue(ctx context.Context, val any) ([]byte, error)
3233
// 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)
3435
// FormatValue returns a string version of the value. Primarily intended for display.
3536
FormatValue(val any) (string, error)
3637
// MaxSerializedWidth returns the maximum size that the serialized value may represent.

0 commit comments

Comments
 (0)