Documentation
¶
Index ¶
- type ClickHouse
- func (c *ClickHouse) ClusterInfo() (isCluster, isShard, isReplica int, clusters []string, err error)
- func (c *ClickHouse) Columns(database, table string) (res []view.Column, err error)
- func (c *ClickHouse) Databases() (res []string, err error)
- func (c *ClickHouse) Exec(s string) (err error)
- func (c *ClickHouse) Query(s string) (res []map[string]interface{}, err error)
- func (c *ClickHouse) Tables(database string) (res []string, err error)
- type Databend
- func (c *Databend) ClusterInfo() (isCluster, isShard, isReplica int, clusters []string, err error)
- func (c *Databend) Columns(database, table string) (res []view.Column, err error)
- func (d *Databend) Databases() (res []string, err error)
- func (c *Databend) Exec(s string) (err error)
- func (c *Databend) Query(s string) (res []map[string]interface{}, err error)
- func (c *Databend) Tables(database string) (res []string, err error)
- type MySQL
- func (c *MySQL) ClusterInfo() (isCluster, isShard, isReplica int, clusters []string, err error)
- func (c *MySQL) Columns(database, table string) (res []view.Column, err error)
- func (c *MySQL) Databases() (res []string, err error)
- func (c *MySQL) Exec(s string) (err error)
- func (c *MySQL) Query(s string) (res []map[string]interface{}, err error)
- func (c *MySQL) Tables(database string) (res []string, err error)
- type Operator
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClickHouse ¶
type ClickHouse struct {
// contains filtered or unexported fields
}
func NewClickHouse ¶
func NewClickHouse(s *Source) *ClickHouse
func (*ClickHouse) ClusterInfo ¶
func (c *ClickHouse) ClusterInfo() (isCluster, isShard, isReplica int, clusters []string, err error)
func (*ClickHouse) Columns ¶
func (c *ClickHouse) Columns(database, table string) (res []view.Column, err error)
func (*ClickHouse) Databases ¶
func (c *ClickHouse) Databases() (res []string, err error)
func (*ClickHouse) Exec ¶
func (c *ClickHouse) Exec(s string) (err error)
type Databend ¶
type Databend struct {
// contains filtered or unexported fields
}
func NewDatabend ¶
func (*Databend) ClusterInfo ¶
type MySQL ¶
type MySQL struct {
// contains filtered or unexported fields
}
func (*MySQL) ClusterInfo ¶
type Operator ¶
type Operator interface { Databases() ([]string, error) Tables(string) ([]string, error) Columns(string, string) ([]view.Column, error) Query(s string) (res []map[string]interface{}, err error) Exec(s string) error ClusterInfo() (isCluster, isShard, isReplica int, clusters []string, err error) }
func Instantiate ¶
Click to show internal directories.
Click to hide internal directories.