bigqueryservice

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigQueryService

type BigQueryService struct {
}

func New

func New() *BigQueryService

New creates a new instance of BigQueryService

func (*BigQueryService) BigqueryDatasets

func (bq *BigQueryService) BigqueryDatasets(projectID string) ([]BigqueryDataset, error)

BigqueryDatasets retrieves datasets from the given projectID across all locations

func (*BigQueryService) BigqueryDatasetsAndTables

func (bq *BigQueryService) BigqueryDatasetsAndTables(projectID string) (CombinedBigqueryData, error)

BigqueryDatasetsAndTables retrieves all datasets and their tables for a given projectID

func (*BigQueryService) BigqueryTables

func (bq *BigQueryService) BigqueryTables(projectID string, datasetID string) ([]BigqueryTable, error)

BigqueryTables retrieves tables from the given projectID and dataset across all locations

type BigqueryDataset

type BigqueryDataset struct {
	DatasetID        string
	Location         string
	CreationTime     time.Time
	LastModifiedTime time.Time
	Description      string
	Name             string
	ProjectID        string
}

BigqueryDataset represents a dataset in BigQuery

type BigqueryTable

type BigqueryTable struct {
	TableID          string
	DatasetID        string
	Location         string
	CreationTime     time.Time
	LastModifiedTime time.Time
	NumBytes         int64
	Description      string
	ProjectID        string
}

BigqueryTable represents a table in BigQuery

type CombinedBigqueryData

type CombinedBigqueryData struct {
	Datasets []BigqueryDataset
	Tables   []BigqueryTable
}

CombinedBigqueryData represents both datasets and tables within a project

Jump to

Keyboard shortcuts

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