handle

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TIMEOUT = 60
)

Variables

View Source
var (
	CkgroupStore ckgroupStore
)
View Source
var ErrPrimarykeyMiss = errors.New("primarikey is required, but not found")

ErrPrimarykeyMiss 主键不存在

Functions

func GetClickhouseTableColumn

func GetClickhouseTableColumn(db *sql.DB, dbName, table, pk, dbType string) (*model.SQLTable, error)

GetClickhouseTableColumn 获取 clickhouse 列信息

func QueryRows

func QueryRows(db *sql.DB, types map[string]model.DataType, query string, args ...interface{}) ([]*model.Data, error)

QueryRows 关系型数据库多行查询

func Run

func Run(exit chan struct{}, wg *sync.WaitGroup)

Run 运行核心逻辑

func SetConfig

func SetConfig(config *config.Config)

SetConfig 设置 conf 到 handle 全局变量

Types

This section is empty.

Jump to

Keyboard shortcuts

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