Documentation
¶
Index ¶
- func DecodeRow(row *spanner.Row) ([]string, error)
- func FormatConfigWithProto(fds *descriptorpb.FileDescriptorSet, multiline bool) (*spanvalue.FormatConfig, error)
- func FormatTypeSimple(typ *sppb.Type) string
- func FormatTypeVerbose(typ *sppb.Type) string
- func JSONFormatConfig() *spanvalue.FormatConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatConfigWithProto ¶
func FormatConfigWithProto(fds *descriptorpb.FileDescriptorSet, multiline bool) (*spanvalue.FormatConfig, error)
FormatConfigWithProto creates a format configuration for decoding Spanner values, with special handling for PROTO and ENUM types based on the provided protobuf file descriptor set. If fds is nil, it returns a config without custom proto/enum support. The multiline parameter controls the formatting of protobuf messages.
func FormatTypeSimple ¶
FormatTypeSimple is format type for headers.
func FormatTypeVerbose ¶
FormatTypeVerbose is format type for DESCRIBE.
func JSONFormatConfig ¶ added in v0.30.0
func JSONFormatConfig() *spanvalue.FormatConfig
JSONFormatConfig returns a spanvalue.FormatConfig that produces valid JSON value strings. Delegates to spanvalue.JSONFormatConfig().
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.