stmt

package
v3.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	TAOS_FIELD_COL = iota + 1
	TAOS_FIELD_TAG
	TAOS_FIELD_QUERY
	TAOS_FIELD_TBNAME
)
View Source
const (
	TotalLengthPosition      = 0
	CountPosition            = TotalLengthPosition + 4
	TagCountPosition         = CountPosition + 4
	ColCountPosition         = TagCountPosition + 4
	TableNamesOffsetPosition = ColCountPosition + 4
	TagsOffsetPosition       = TableNamesOffsetPosition + 4
	ColsOffsetPosition       = TagsOffsetPosition + 4
	DataPosition             = ColsOffsetPosition + 4
)
View Source
const (
	BindDataTotalLengthOffset = 0
	BindDataTypeOffset        = BindDataTotalLengthOffset + 4
	BindDataNumOffset         = BindDataTypeOffset + 4
	BindDataIsNullOffset      = BindDataNumOffset + 4
)

Variables

This section is empty.

Functions

func MarshalStmt2Binary added in v3.6.0

func MarshalStmt2Binary(bindData []*TaosStmt2BindData, isInsert bool, fields []*Stmt2AllField) ([]byte, error)

Types

type Stmt2AllField added in v3.6.0

type Stmt2AllField struct {
	Name      string `json:"name"`
	FieldType int8   `json:"field_type"`
	Precision uint8  `json:"precision"`
	Scale     uint8  `json:"scale"`
	Bytes     int32  `json:"bytes"`
	BindType  int8   `json:"bind_type"`
}

type StmtField

type StmtField struct {
	Name      string `json:"name"`
	FieldType int8   `json:"field_type"`
	Precision uint8  `json:"precision"`
	Scale     uint8  `json:"scale"`
	Bytes     int32  `json:"bytes"`
}

func (*StmtField) GetType

func (s *StmtField) GetType() (*types.ColumnType, error)

type TaosStmt2BindData added in v3.6.0

type TaosStmt2BindData struct {
	TableName string
	Tags      []driver.Value   // row format
	Cols      [][]driver.Value // column format
}

Jump to

Keyboard shortcuts

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