package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

BuildStmtDetailsMetadataJSON returns a json.JSON object for the aggregated metadata appstatspb.AggregatedStatementMetadata.
BuildStmtMetadataJSON returns a json.JSON object for the metadata section of the appstatspb.CollectedStatementStatistics.
BuildStmtStatisticsJSON encodes the statistics section a given appstatspb.CollectedStatementStatistics into a json.JSON object.
BuildTxnMetadataJSON encodes the metadata portion a given appstatspb.CollectedTransactionStatistics into a json.JSON object.
BuildTxnStatisticsJSON encodes the statistics portion a given appstatspb.CollectedTransactionStatistics into a json.JSON.
DatumToUint64 Convert a bytes datum to uint64.
DecodeAggregatedMetadataAggregatedFieldsOnlyJSON decodes the 'aggregated metadata' represented by appstatspb.AggregatedStatementMetadata.
DecodeAggregatedMetadataJSON decodes the 'aggregated metadata' represented by appstatspb.AggregatedStatementMetadata.
DecodeStmtStatsMetadataFlagsOnlyJSON decodes the 'metadata' flags only fields of the JSON representation of the statement statistics into appstatspb.CollectedStatementStatistics.
DecodeStmtStatsMetadataJSON decodes the 'metadata' field of the JSON representation of the statement statistics into appstatspb.CollectedStatementStatistics.
DecodeStmtStatsStatisticsJSON decodes the 'statistics' field and the 'execution_statistics' field in the given json into appstatspb.StatementStatistics.
DecodeTxnStatsMetadataJSON decodes the 'metadata' field of the JSON representation of transaction statistics into appstatspb.CollectedTransactionStatistics.
DecodeTxnStatsStatisticsJSON decodes the 'statistics' section of the transaction statistics JSON payload into appstatspb.TransactionStatistics protobuf.
EncodeUint64ToBytes returns the []byte representation of an uint64 value.
ExplainTreePlanNodeToJSON builds a formatted JSON object from the explain tree nodes.
JSONToExplainTreePlanNode decodes the JSON-formatted ExplainTreePlanNode produced by ExplainTreePlanNodeToJSON.