tdengine

package
v0.0.0-...-8ca9097 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Insert         = '1'
	CreateSTable   = '2'
	CreateSubTable = '3'
	Modify         = '4'
)
View Source
const Size1M = 1 * 1024 * 1024

Variables

View Source
var GlobalTable = sync.Map{}

Functions

func FastFormat

func FastFormat(buf *bytes.Buffer, v interface{}) string

func NewBenchmark

func NewBenchmark(dbName string, opts *LoadingOptions, dataSourceConfig *source.DataSourceConfig) (targets.Benchmark, error)

func NewTarget

func NewTarget() targets.ImplementedTarget

func TargetSpecificFlags

func TargetSpecificFlags(flagPrefix string, flagSet *pflag.FlagSet)

Types

type BatchFactory

type BatchFactory struct {
	// contains filtered or unexported fields
}

func NewBatchFactory

func NewBatchFactory() *BatchFactory

func (*BatchFactory) New

func (b *BatchFactory) New() targets.Batch

type Ctx

type Ctx struct {
	// contains filtered or unexported fields
}

type DbCreator

type DbCreator struct {
	Opts *LoadingOptions
	Db   *commonpool.Conn
}

func (*DbCreator) Close

func (d *DbCreator) Close()

func (*DbCreator) CreateDB

func (d *DbCreator) CreateDB(dbName string) error

func (*DbCreator) DBExists

func (d *DbCreator) DBExists(dbName string) bool

func (*DbCreator) Init

func (d *DbCreator) Init()

func (*DbCreator) RemoveOldDB

func (d *DbCreator) RemoveOldDB(dbName string) error

type LoadingOptions

type LoadingOptions struct {
	User           string
	Pass           string
	Host           string
	Port           int
	VGroups        int
	Buffer         int
	Pages          int
	SttTrigger     int
	WalFsyncPeriod *int
	WalLevel       *int
	DBParameters   string
}

type Serializer

type Serializer struct {
	// contains filtered or unexported fields
}

func (*Serializer) Serialize

func (s *Serializer) Serialize(p *data.Point, w io.Writer) error

type Table

type Table struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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