clickhouse

package
v0.0.0-...-6c4e8d0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnection

func NewConnection(info *apis.Clickhouse) (dbutil.IConnection, error)

Types

type Connection

type Connection struct {
	Host     string
	Port     int
	Username string
	Password string
	// contains filtered or unexported fields
}

func (*Connection) Close

func (conn *Connection) Close() error

func (*Connection) CreateDatabase

func (conn *Connection) CreateDatabase(db string) error

func (*Connection) CreateUser

func (conn *Connection) CreateUser(username string, password string, database string) error

func (*Connection) IsDatabaseExists

func (conn *Connection) IsDatabaseExists(db string) (bool, error)

func (*Connection) IsUserExists

func (conn *Connection) IsUserExists(username string) (bool, error)

Jump to

Keyboard shortcuts

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