dbutils

package
v0.0.0-...-6410feb Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClickhouseSqlStrV1ToV2

func ClickhouseSqlStrV1ToV2(sqlstr string) (string, error)

convert clickhouse sqlstr v1 to v2 v1: tcp://192.168.222.4:9000?database=yunionmeter&read_timeout=10&write_timeout=20 v2: clickhouse://username:password@host1:9000,host2:9000/database?dial_timeout=200ms&max_execution_time=60

func ClickhouseSqlStrV2ToV1

func ClickhouseSqlStrV2ToV1(sqlstr string) (string, error)

func ValidateClickhouseV1Str

func ValidateClickhouseV1Str(sqlstr string) error

func ValidateClickhouseV2Str

func ValidateClickhouseV2Str(sqlstr string) error

Types

type SDBConfig

type SDBConfig struct {
	Hostport string
	Database string
	Username string
	Password string
}

func ParseMySQLConnStr

func ParseMySQLConnStr(connStr string) SDBConfig

func (SDBConfig) Validate

func (cfg SDBConfig) Validate() error

Jump to

Keyboard shortcuts

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