extractor

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BQExtractor

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

func NewBQExtractor

func NewBQExtractor(client DDLViewGetter, l log.Logger) (*BQExtractor, error)

func (BQExtractor) Extract

func (e BQExtractor) Extract(ctx context.Context, resourceURNs []bigquery.ResourceURN) (urnToDDLAll map[bigquery.ResourceURN]string, err error)

Extract returns map of urns and its query string given list of urns It extract the corresponding query only if the urn is considered as a view

type DDLViewGetter

type DDLViewGetter interface {
	BulkGetDDLView(ctx context.Context, dataset bigquery.ProjectDataset, names []string) (map[bigquery.ResourceURN]string, error)
}

Jump to

Keyboard shortcuts

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