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)
}
Click to show internal directories.
Click to hide internal directories.