common

package
v1.0.33 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatSQL added in v1.0.19

func FormatSQL(sql string) string

func GetClusterStatement

func GetClusterStatement(cluster string) (clusterStatement string)

func GetComment

func GetComment(comment string, cluster string, toTable *string) string

func MapArrayInterfaceToArrayOfStrings

func MapArrayInterfaceToArrayOfStrings(in []interface{}) []string

func MapInterfaceToMapOfString added in v1.0.1

func MapInterfaceToMapOfString(in map[string]interface{}) map[string]string

func Quote

func Quote(elems []string) []string

Quote all strings on a string slice

func StringListToSet

func StringListToSet(list []string) *schema.Set

func StringSetToList

func StringSetToList(set *schema.Set) []string

func UnmarshalComment

func UnmarshalComment(storedComment string) (comment string, cluster string, toTable string, err error)

Types

type ApiClient

type ApiClient struct {
	ClickhouseConnection *driver.Conn
	DefaultCluster       string
}

Jump to

Keyboard shortcuts

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