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 <[email protected]>
  • Loading branch information
2 people authored and bhshkh committed Nov 3, 2023
1 parent 4dcd7dd commit 5c778b2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spanner/batch.go
Original file line number Diff line number Diff line change
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 5c778b2

Please sign in to comment.