We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc0b7be commit 27c388eCopy full SHA for 27c388e
table/table.go
@@ -63,6 +63,13 @@ func (t *Table) Metadata() Metadata {
63
return t.metadata
64
}
65
66
+// PrimaryKeyCmp returns copy of table's primaryKeyCmp.
67
+func (t *Table) PrimaryKeyCmp() []qb.Cmp {
68
+ primaryKeyCmp := make([]qb.Cmp, len(t.primaryKeyCmp))
69
+ copy(primaryKeyCmp, t.primaryKeyCmp)
70
+ return primaryKeyCmp
71
+}
72
+
73
// Name returns table name.
74
func (t *Table) Name() string {
75
return t.metadata.Name
0 commit comments