go-vitess.v1: gopkg.in/src-d/go-vitess.v1/vt/dtids Index | Files

package dtids

import "gopkg.in/src-d/go-vitess.v1/vt/dtids"

Package dtids contains dtid convenience functions.


Package Files


func New Uses

func New(mmShard *vtgatepb.Session_ShardSession) string

New generates a dtid based on Session_ShardSession.

func ShardSession Uses

func ShardSession(dtid string) (*vtgatepb.Session_ShardSession, error)

ShardSession builds a Session_ShardSession from a dtid.

func TransactionID Uses

func TransactionID(dtid string) (int64, error)

TransactionID extracts the original transaction ID from the dtid.

Package dtids imports 8 packages (graph) and is imported by 3 packages. Updated 2019-07-15. Refresh now. Tools for package owners.