Documentation ¶
Index ¶
- func Connect(context context.Context, cred *BQCredentials) (*bigquery.Client, error)
- type BQCredentials
- type BigQuery
- func (bq *BigQuery) AddColumns(ctx context.Context, tableName string, columnsInfo []warehouseutils.ColumnInfo) (err error)
- func (*BigQuery) AlterColumn(context.Context, string, string, string) (model.AlterTableResponse, error)
- func (bq *BigQuery) Cleanup(context.Context)
- func (bq *BigQuery) Connect(ctx context.Context, warehouse model.Warehouse) (client.Client, error)
- func (bq *BigQuery) CrashRecover(ctx context.Context)
- func (bq *BigQuery) CreateSchema(ctx context.Context) (err error)
- func (bq *BigQuery) CreateTable(ctx context.Context, tableName string, columnMap model.TableSchema) error
- func (bq *BigQuery) DeleteBy(ctx context.Context, tableNames []string, params warehouseutils.DeleteByParams) error
- func (bq *BigQuery) DeleteTable(ctx context.Context, tableName string) (err error)
- func (bq *BigQuery) DownloadIdentityRules(ctx context.Context, gzWriter *misc.GZipWriter) (err error)
- func (bq *BigQuery) DropTable(ctx context.Context, tableName string) (err error)
- func (*BigQuery) ErrorMappings() []model.JobError
- func (bq *BigQuery) FetchSchema(ctx context.Context) (model.Schema, model.Schema, error)
- func (bq *BigQuery) GetTotalCountInTable(ctx context.Context, tableName string) (int64, error)
- func (bq *BigQuery) IsEmpty(ctx context.Context, warehouse model.Warehouse) (empty bool, err error)
- func (bq *BigQuery) LoadIdentityMappingsTable(ctx context.Context) (err error)
- func (bq *BigQuery) LoadIdentityMergeRulesTable(ctx context.Context) (err error)
- func (bq *BigQuery) LoadTable(ctx context.Context, tableName string) error
- func (bq *BigQuery) LoadTestTable(ctx context.Context, location, tableName string, _ map[string]interface{}, ...) (err error)
- func (bq *BigQuery) LoadUserTables(ctx context.Context) (errorMap map[string]error)
- func (*BigQuery) SetConnectionTimeout(_ time.Duration)
- func (bq *BigQuery) Setup(ctx context.Context, warehouse model.Warehouse, ...) (err error)
- func (*BigQuery) TestConnection(context.Context, model.Warehouse) (err error)
- type StagingLoadTable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BQCredentials ¶ added in v1.7.0
type BigQuery ¶ added in v1.8.0
type BigQuery struct {
// contains filtered or unexported fields
}
func (*BigQuery) AddColumns ¶ added in v1.8.0
func (bq *BigQuery) AddColumns(ctx context.Context, tableName string, columnsInfo []warehouseutils.ColumnInfo) (err error)
func (*BigQuery) AlterColumn ¶ added in v1.8.0
func (*BigQuery) CrashRecover ¶ added in v1.8.0
func (*BigQuery) CreateSchema ¶ added in v1.8.0
func (*BigQuery) CreateTable ¶ added in v1.8.0
func (*BigQuery) DeleteBy ¶ added in v1.8.0
func (bq *BigQuery) DeleteBy(ctx context.Context, tableNames []string, params warehouseutils.DeleteByParams) error
func (*BigQuery) DeleteTable ¶ added in v1.8.0
func (*BigQuery) DownloadIdentityRules ¶ added in v1.8.0
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.