bqclient

package
v0.0.0-...-b508d79 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func GetDatasets

func GetDatasets(ctx context.Context, projectID string) ([]string, error)

Types

type BigQueryTable

type BigQueryTable struct {
	Description  string       `json:"description"`
	LastModified time.Time    `json:"lastModified"`
	Name         string       `json:"name"`
	Type         BigQueryType `json:"type"`
}

func GetTables

func GetTables(ctx context.Context, projectID, datasetID string) ([]*BigQueryTable, error)

type BigQueryType

type BigQueryType string
const (
	BigQueryTypeTable            BigQueryType = "table"
	BigQueryTypeView             BigQueryType = "view"
	BigQueryTypeMaterializedView BigQueryType = "materialized_view"
)

func (BigQueryType) IsValid

func (e BigQueryType) IsValid() bool

func (BigQueryType) MarshalGQL

func (e BigQueryType) MarshalGQL(w io.Writer)

func (BigQueryType) String

func (e BigQueryType) String() string

func (*BigQueryType) UnmarshalGQL

func (e *BigQueryType) UnmarshalGQL(v interface{}) error

type BigqueryColumn

type BigqueryColumn struct {
	Name        string `json:"name"`
	Type        string `json:"type"`
	Mode        string `json:"mode"`
	Description string `json:"description"`
}

type BigqueryMetadata

type BigqueryMetadata struct {
	Schema       BigquerySchema     `json:"schema"`
	TableType    bigquery.TableType `json:"tableType"`
	LastModified time.Time          `json:"lastModified"`
	Created      time.Time          `json:"created"`
	Expires      time.Time          `json:"expires"`
	Description  string             `json:"description"`
}

func TableMetadata

func TableMetadata(ctx context.Context, projectID string, datasetID string, tableID string) (BigqueryMetadata, error)

type BigquerySchema

type BigquerySchema struct {
	Columns []BigqueryColumn `json:"columns"`
}

Jump to

Keyboard shortcuts

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