dtids

package
v0.16.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package dtids contains dtid convenience functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(mmShard *vtgatepb.Session_ShardSession) string

New generates a dtid based on Session_ShardSession.

func ShardSession

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

ShardSession builds a Session_ShardSession from a dtid.

func TransactionID

func TransactionID(dtid string) (int64, error)

TransactionID extracts the original transaction ID from the dtid.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL