clickhouse

package
v0.0.0-...-9c06765 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(cfg Info) (*sql.DB, error)

获取一个数据库连接

Types

type Info

type Info struct {
	Host     string `json:"host"`
	Port     string `json:"port"`
	Database string `json:"db"`
	Username string `json:"username"`
	Password string `json:"password"`
	Debug    bool   `json:"debug"`
}

Clickhouse 初始化连接信息对象

Jump to

Keyboard shortcuts

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