Documentation ¶
Index ¶
- func NewConnection(info *apis.Clickhouse) (dbutil.IConnection, error)
- type Connection
- func (conn *Connection) Close() error
- func (conn *Connection) CreateDatabase(db string) error
- func (conn *Connection) CreateUser(username string, password string, database string) error
- func (conn *Connection) IsDatabaseExists(db string) (bool, error)
- func (conn *Connection) IsUserExists(username string) (bool, error)
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)
Click to show internal directories.
Click to hide internal directories.