Documentation ¶
Index ¶
- Constants
- func Connect(context context.Context, cred *BQCredentials) (*bigquery.Client, error)
- func WithConfig(h *BigQuery, config *config.Config)
- type BQCredentials
- type BigQuery
- func (bq *BigQuery) AddColumns(tableName string, columnsInfo []warehouseutils.ColumnInfo) (err error)
- func (*BigQuery) AlterColumn(_, _, _ string) (model.AlterTableResponse, error)
- func (bq *BigQuery) Cleanup()
- func (bq *BigQuery) Connect(warehouse model.Warehouse) (client.Client, error)
- func (bq *BigQuery) CrashRecover()
- func (bq *BigQuery) CreateSchema() (err error)
- func (bq *BigQuery) CreateTable(tableName string, columnMap model.TableSchema) error
- func (bq *BigQuery) DeleteBy(tableNames []string, params warehouseutils.DeleteByParams) error
- func (bq *BigQuery) DeleteTable(tableName string) (err error)
- func (bq *BigQuery) DownloadIdentityRules(gzWriter *misc.GZipWriter) (err error)
- func (bq *BigQuery) DropTable(tableName string) (err error)
- func (*BigQuery) ErrorMappings() []model.JobError
- func (bq *BigQuery) FetchSchema() (model.Schema, model.Schema, error)
- func (bq *BigQuery) GetTotalCountInTable(ctx context.Context, tableName string) (int64, error)
- func (bq *BigQuery) IsEmpty(warehouse model.Warehouse) (empty bool, err error)
- func (bq *BigQuery) LoadIdentityMappingsTable() (err error)
- func (bq *BigQuery) LoadIdentityMergeRulesTable() (err error)
- func (bq *BigQuery) LoadTable(_ context.Context, tableName string) error
- func (bq *BigQuery) LoadTestTable(location, tableName string, _ map[string]interface{}, _ string) (err error)
- func (bq *BigQuery) LoadUserTables(context.Context) (errorMap map[string]error)
- func (*BigQuery) SetConnectionTimeout(_ time.Duration)
- func (bq *BigQuery) Setup(warehouse model.Warehouse, uploader warehouseutils.Uploader) (err error)
- func (*BigQuery) TestConnection(context.Context, model.Warehouse) (err error)
- type StagingLoadTable
Constants ¶
View Source
const ( GCPProjectID = "project" GCPCredentials = "credentials" GCPLocation = "location" )
String constants for bigquery destination config
Variables ¶
This section is empty.
Functions ¶
func WithConfig ¶ added in v1.8.0
Types ¶
type BQCredentials ¶ added in v1.7.0
type BigQuery ¶ added in v1.8.0
type BigQuery struct { Logger logger.Logger SlowQueryThreshold time.Duration // contains filtered or unexported fields }
func (*BigQuery) AddColumns ¶ added in v1.8.0
func (bq *BigQuery) AddColumns(tableName string, columnsInfo []warehouseutils.ColumnInfo) (err error)
func (*BigQuery) AlterColumn ¶ added in v1.8.0
func (*BigQuery) AlterColumn(_, _, _ string) (model.AlterTableResponse, error)
func (*BigQuery) CrashRecover ¶ added in v1.8.0
func (bq *BigQuery) CrashRecover()
func (*BigQuery) CreateSchema ¶ added in v1.8.0
func (*BigQuery) CreateTable ¶ added in v1.8.0
func (bq *BigQuery) CreateTable(tableName string, columnMap model.TableSchema) error
func (*BigQuery) DeleteBy ¶ added in v1.8.0
func (bq *BigQuery) DeleteBy(tableNames []string, params warehouseutils.DeleteByParams) error
func (*BigQuery) DeleteTable ¶ added in v1.8.0
func (*BigQuery) DownloadIdentityRules ¶ added in v1.8.0
func (bq *BigQuery) DownloadIdentityRules(gzWriter *misc.GZipWriter) (err error)
func (*BigQuery) ErrorMappings ¶ added in v1.8.0
func (*BigQuery) FetchSchema ¶ added in v1.8.0
FetchSchema queries bigquery and returns the schema associated with provided namespace
func (*BigQuery) GetTotalCountInTable ¶ added in v1.8.0
func (*BigQuery) LoadIdentityMappingsTable ¶ added in v1.8.0
func (*BigQuery) LoadIdentityMergeRulesTable ¶ added in v1.8.0
func (*BigQuery) LoadTestTable ¶ added in v1.8.0
func (*BigQuery) LoadUserTables ¶ added in v1.8.0
func (*BigQuery) SetConnectionTimeout ¶ added in v1.8.0
type StagingLoadTable ¶ added in v1.7.0
type StagingLoadTable struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.