builderv2

package
v1.0.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorCreateType = errors.New("create type error")
)

Functions

This section is empty.

Types

type BufferNullDataPipe

type BufferNullDataPipe struct {
	Storage
}

BufferNullDataPipe Link data calculation

func (*BufferNullDataPipe) GetSQLs

func (t *BufferNullDataPipe) GetSQLs() (names []string, sqls []string)

type ComputeTrace

type ComputeTrace struct {
	Storage
}

ComputeTrace Link data calculation

func (*ComputeTrace) GetSQLs

func (t *ComputeTrace) GetSQLs() (names []string, sqls []string)

type IStorageCreator

type IStorageCreator interface {

	// SetParams Initialization parameter
	SetParams(Params)

	// GetSQLs get distribution table sql
	GetSQLs() (names []string, sqls []string)

	// Execute SQL and return the results
	Execute([]string) (string, error)
}

func GetTableCreator

func GetTableCreator(cType int) (IStorageCreator, error)

GetTableCreator Through specific types of logging library access to build table objects, obtain four different SQL statements on the basis of the process to create

type Params

type Params struct {
	IsShard   bool // isShard Does it include shard
	IsReplica bool // isReplica Does it include replica

	Cluster  string // cluster name
	Database string // database name
	Table    string // table name

	TTL int // ttl Data expiration time, unit is the day

	DB *sql.DB // clickhouse instance
}

type Storage

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

func (*Storage) Execute

func (t *Storage) Execute(sqls []string) (string, error)

func (*Storage) GetSQLs

func (t *Storage) GetSQLs() ([]string, []string)

func (*Storage) SetParams

func (t *Storage) SetParams(req Params)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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