Documentation
¶
Index ¶
- func CreateClient(ctx context.Context, logger log.Logger, config *Config) (*bigquery.Client, error)
- func IsExcludedDataset(datasetID string, excludedDatasets []string) bool
- func IsExcludedTable(datasetID, tableID string, excludedTables []string) bool
- type Config
- type Exclude
- type Extractor
- type NewClientFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClient ¶ added in v0.9.1
CreateClient creates a bigquery client
func IsExcludedDataset ¶
func IsExcludedTable ¶
Types ¶
type Config ¶
type Config struct {
ProjectID string `json:"project_id" yaml:"project_id" mapstructure:"project_id" validate:"required"`
// ServiceAccountBase64 takes precedence over ServiceAccountJSON field
ServiceAccountBase64 string `json:"service_account_base64" yaml:"service_account_base64" mapstructure:"service_account_base64"`
ServiceAccountJSON string `json:"service_account_json" yaml:"service_account_json" mapstructure:"service_account_json"`
MaxPageSize int `json:"max_page_size" yaml:"max_page_size" mapstructure:"max_page_size"`
DatasetPageSize int `json:"dataset_page_size" mapstructure:"dataset_page_size"`
TablePageSize int `json:"table_page_size" mapstructure:"table_page_size"`
TablePattern string `json:"table_pattern" yaml:"table_pattern" mapstructure:"table_pattern"`
Exclude Exclude `json:"exclude" yaml:"exclude" mapstructure:"exclude"`
IncludeColumnProfile bool `json:"include_column_profile" yaml:"include_column_profile" mapstructure:"include_column_profile"`
MaxPreviewRows int `json:"max_preview_rows" yaml:"max_preview_rows" mapstructure:"max_preview_rows" default:"30"`
MixValues bool `json:"mix_values" mapstructure:"mix_values" default:"false"`
IsCollectTableUsage bool `json:"collect_table_usage" yaml:"collect_table_usage" mapstructure:"collect_table_usage" default:"false"`
UsagePeriodInDay int64 `json:"usage_period_in_day" yaml:"usage_period_in_day" mapstructure:"usage_period_in_day" default:"7"`
UsageProjectIDs []string `json:"usage_project_ids" yaml:"usage_project_ids" mapstructure:"usage_project_ids"`
BuildViewLineage bool `json:"build_view_lineage" yaml:"build_view_lineage" mapstructure:"build_view_lineage" default:"false"`
}
Config holds the set of configuration for the bigquery extractor
Click to show internal directories.
Click to hide internal directories.