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