Skip to content

Commit

Permalink
feat(spanner): add method (#8945)
Browse files Browse the repository at this point in the history
Co-authored-by: rahul2393 <irahul@google.com>
  • Loading branch information
harshachinta and rahul2393 committed Nov 2, 2023
1 parent cc76ab3 commit 411a51e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spanner/batch.go
Expand Up @@ -449,3 +449,11 @@ func (p *Partition) UnmarshalBinary(data []byte) error {
}
return err
}

// GetPartitionToken returns partition token
func (p *Partition) GetPartitionToken() []byte {
if p != nil {
return p.pt
}
return nil
}

0 comments on commit 411a51e

Please sign in to comment.