Documentation ¶
Index ¶
- Constants
- func Connect(context context.Context, cred *BQCredentialsT) (*bigquery.Client, error)
- func Init()
- type BQCredentialsT
- type HandleT
- func (bq *HandleT) AddColumns(tableName string, columnsInfo []warehouseutils.ColumnInfo) (err error)
- func (*HandleT) AlterColumn(_, _, _ string) (err error)
- func (bq *HandleT) Cleanup()
- func (bq *HandleT) Connect(warehouse warehouseutils.Warehouse) (client.Client, error)
- func (bq *HandleT) CrashRecover(warehouse warehouseutils.Warehouse) (err error)
- func (bq *HandleT) CreateSchema() (err error)
- func (bq *HandleT) CreateTable(tableName string, columnMap map[string]string) (err 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) FetchSchema(warehouse warehouseutils.Warehouse) (schema, unrecognizedSchema warehouseutils.SchemaT, err error)
- func (bq *HandleT) GetTotalCountInTable(ctx context.Context, tableName string) (total int64, err error)
- func (bq *HandleT) IsEmpty(warehouse warehouseutils.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 warehouseutils.Warehouse, uploader warehouseutils.UploaderI) (err error)
- func (bq *HandleT) TestConnection(warehouse warehouseutils.Warehouse) (err error)
- type StagingLoadTableT
Constants ¶
View Source
const ( GCPProjectID = "project" GCPCredentials = "credentials" GCPLocation = "location" )
String constants for bigquery destination config
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BQCredentialsT ¶
type HandleT ¶
type HandleT struct {
// contains filtered or unexported fields
}
func (*HandleT) AddColumns ¶ added in v1.3.0
func (bq *HandleT) AddColumns(tableName string, columnsInfo []warehouseutils.ColumnInfo) (err error)
func (*HandleT) AlterColumn ¶ added in v0.1.10
func (*HandleT) CrashRecover ¶
func (bq *HandleT) CrashRecover(warehouse warehouseutils.Warehouse) (err error)
func (*HandleT) CreateSchema ¶ added in v0.1.10
func (*HandleT) CreateTable ¶ added in v0.1.10
func (*HandleT) DeleteBy ¶ added in v1.2.0
func (bq *HandleT) DeleteBy(tableNames []string, params warehouseutils.DeleteByParams) error
func (*HandleT) DeleteTable ¶ added in v0.1.10
func (*HandleT) DownloadIdentityRules ¶ added in v0.1.10
func (bq *HandleT) DownloadIdentityRules(gzWriter *misc.GZipWriter) (err error)
func (*HandleT) FetchSchema ¶ added in v0.1.10
func (bq *HandleT) FetchSchema(warehouse warehouseutils.Warehouse) (schema, unrecognizedSchema warehouseutils.SchemaT, err error)
FetchSchema queries bigquery and returns the schema associated with provided namespace
func (*HandleT) GetTotalCountInTable ¶ added in v0.1.10
func (*HandleT) IsEmpty ¶ added in v0.1.10
func (bq *HandleT) IsEmpty(warehouse warehouseutils.Warehouse) (empty bool, err error)
func (*HandleT) LoadIdentityMappingsTable ¶ added in v0.1.10
func (*HandleT) LoadIdentityMergeRulesTable ¶ added in v0.1.10
func (*HandleT) LoadTestTable ¶ added in v0.1.10
func (*HandleT) LoadUserTables ¶ added in v0.1.10
func (*HandleT) SetConnectionTimeout ¶ added in v0.1.10
func (*HandleT) Setup ¶ added in v0.1.10
func (bq *HandleT) Setup(warehouse warehouseutils.Warehouse, uploader warehouseutils.UploaderI) (err error)
func (*HandleT) TestConnection ¶ added in v0.1.10
func (bq *HandleT) TestConnection(warehouse warehouseutils.Warehouse) (err error)
type StagingLoadTableT ¶ added in v0.1.10
type StagingLoadTableT struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.