client

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SQLClient = "SQLClient"
	BQClient  = "BigQueryClient"
	DBClient  = "DBClient"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	SQL       *sql.DB
	BQ        *bigquery.Client
	DBHandleT *databricks.DBHandleT
	Type      string
}

func (*Client) Close

func (cl *Client) Close()

func (*Client) Query

func (cl *Client) Query(statement string, queryType QueryType) (result warehouseutils.QueryResult, err error)

type QueryType

type QueryType int64
const (
	Read QueryType = iota
	Write
)

Jump to

Keyboard shortcuts

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