query

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecResponseChunk

type ExecResponseChunk struct {
	URL              string `json:"url"`
	RowCount         int    `json:"rowCount"`
	UncompressedSize int64  `json:"uncompressedSize"`
	CompressedSize   int64  `json:"compressedSize"`
}

ExecResponseChunk describes metadata for a chunk of query results, including URL and size information.

type ExecResponseRowType

type ExecResponseRowType struct {
	Name       string          `json:"name"`
	Fields     []FieldMetadata `json:"fields"`
	ByteLength int64           `json:"byteLength"`
	Length     int64           `json:"length"`
	Type       string          `json:"type"`
	Precision  int64           `json:"precision"`
	Scale      int64           `json:"scale"`
	Nullable   bool            `json:"nullable"`
}

ExecResponseRowType describes column metadata from a query response.

func (*ExecResponseRowType) ToFieldMetadata

func (ex *ExecResponseRowType) ToFieldMetadata() FieldMetadata

ToFieldMetadata transforms ExecResponseRowType to FieldMetadata.

type FieldMetadata

type FieldMetadata struct {
	Name      string          `json:"name,omitempty"`
	Type      string          `json:"type"`
	Nullable  bool            `json:"nullable"`
	Length    int             `json:"length"`
	Scale     int             `json:"scale"`
	Precision int             `json:"precision"`
	Fields    []FieldMetadata `json:"fields,omitempty"`
}

FieldMetadata describes metadata for a field, including nested fields for complex types.

Jump to

Keyboard shortcuts

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