Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct {
// contains filtered or unexported fields
}
CLI ClickHouse 交互式命令行客户端
func NewCLIWithConfig ¶ added in v0.1.1
NewCLIWithConfig 使用配置创建 ClickHouse CLI 实例
type Config ¶ added in v0.1.1
type Config struct {
Host string
Port int
Username string
Password string
Database string
Secure bool // 使用 TLS
SkipVerify bool // 跳过 TLS 验证
DialTimeout time.Duration // 连接超时
ReadTimeout time.Duration // 读超时
WriteTimeout time.Duration // 写超时
MaxOpenConns int // 最大打开连接数
MaxIdleConns int // 最大空闲连接数
ConnMaxLifetime time.Duration // 连接最大生命周期
Compression string // 压缩方式: lz4, zstd, none
// 其他参数
Params map[string]string
}
Config ClickHouse 连接配置
type ReadWriteCloser ¶ added in v0.1.1
type ReadWriteCloser struct {
io.ReadWriter
}
ReadWriteCloser wraps io.ReadWriter to add a no-op Close method
func (*ReadWriteCloser) Close ¶ added in v0.1.1
func (rwc *ReadWriteCloser) Close() error
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader 从终端读取输入(使用 readline 以支持SSH session)
type ServerInfo ¶
ServerInfo ClickHouse 服务器信息
Click to show internal directories.
Click to hide internal directories.