Skip to content

Commit 411a51e

Browse files
feat(spanner): add method (#8945)
Co-authored-by: rahul2393 <irahul@google.com>
1 parent cc76ab3 commit 411a51e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

spanner/batch.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,3 +449,11 @@ func (p *Partition) UnmarshalBinary(data []byte) error {
449449
}
450450
return err
451451
}
452+
453+
// GetPartitionToken returns partition token
454+
func (p *Partition) GetPartitionToken() []byte {
455+
if p != nil {
456+
return p.pt
457+
}
458+
return nil
459+
}

0 commit comments

Comments
 (0)