tuple

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataTypeNull   = uint8('n')
	DataTypeToast  = uint8('u')
	DataTypeText   = uint8('t')
	DataTypeBinary = uint8('b')
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Columns      DataColumns
	SkipByte     int
	ColumnNumber uint16
}

func NewData

func NewData(data []byte, tupleDataType uint8, skipByteLength int) (*Data, error)

func (*Data) Decode

func (d *Data) Decode(data []byte, skipByteLength int)

func (*Data) DecodeWithColumn

func (d *Data) DecodeWithColumn(columns []RelationColumn) (map[string]any, error)

type DataColumn

type DataColumn struct {
	Data     []byte
	Length   uint32
	DataType uint8
}

type DataColumns

type DataColumns []*DataColumn

type RelationColumn

type RelationColumn struct {
	Name         string
	DataType     uint32
	TypeModifier uint32
	Flags        uint8
}

Jump to

Keyboard shortcuts

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