source

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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) 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)

func (*ClickHouse) Query

func (c *ClickHouse) Query(s string) (res []map[string]interface{}, err error)

func (*ClickHouse) Tables

func (c *ClickHouse) Tables(database string) (res []string, err error)

type Databend

type Databend struct {
	// contains filtered or unexported fields
}

func NewDatabend

func NewDatabend(s *Source) *Databend

func (*Databend) Columns

func (c *Databend) Columns(database, table string) (res []view.Column, err error)

func (*Databend) Databases

func (c *Databend) Databases() (res []string, err error)

func (*Databend) Exec

func (c *Databend) Exec(s string) (err error)

func (*Databend) Query

func (c *Databend) Query(s string) (res []map[string]interface{}, err error)

func (*Databend) Tables

func (c *Databend) Tables(database string) (res []string, err error)

type MySQL

type MySQL struct {
	// contains filtered or unexported fields
}

func NewMySQL

func NewMySQL(s *Source) *MySQL

func (*MySQL) Columns

func (c *MySQL) Columns(database, table string) (res []view.Column, err error)

func (*MySQL) Databases

func (c *MySQL) Databases() (res []string, err error)

func (*MySQL) Exec

func (c *MySQL) Exec(s string) (err error)

func (*MySQL) Query

func (c *MySQL) Query(s string) (res []map[string]interface{}, err error)

func (*MySQL) Tables

func (c *MySQL) Tables(database string) (res []string, err error)

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
}

func Instantiate

func Instantiate(s *Source) Operator

type Source

type Source struct {
	DSN      string
	URL      string
	UserName string
	Password string
	Typ      int
}

func (*Source) GetDSN

func (s *Source) GetDSN() string

Jump to

Keyboard shortcuts

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