connect

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClickhouseConn

func GetClickhouseConn(settings *config.Settings) (clickhouse.Conn, error)

GetClickhouseConn returns a clickhouse.Conn connection to clickhouse.

func GetClickhouseDB

func GetClickhouseDB(settings *config.Settings) *sql.DB

GetClickhouseDB returns a sql.DB connection to clickhouse.

Types

type ColInfo

type ColInfo struct {
	Name    string
	Type    string
	Comment string
}

ColInfo is a struct that holds the column meta information.

func GetTableCols

func GetTableCols(ctx context.Context, chConn clickhouse.Conn, tableName string) ([]ColInfo, error)

GetTableCols returns the current columns of the table.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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