Documentation
¶
Overview ¶
Package bigquery provides BigQuery type provider for CEL type system integration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidSchema indicates a problem with the provided schema or database introspection. ErrInvalidSchema = errors.New("invalid schema") )
Sentinel errors for the bigquery package.
View Source
var NewSchema = schema.NewSchema
NewSchema creates a new Schema. This is an alias for schema.NewSchema.
Functions ¶
This section is empty.
Types ¶
type FieldSchema ¶
type FieldSchema = schema.FieldSchema
FieldSchema is an alias for schema.FieldSchema.
type TypeProvider ¶
type TypeProvider interface {
types.Provider
LoadTableSchema(ctx context.Context, tableName string) error
GetSchemas() map[string]Schema
Close()
}
TypeProvider interface for BigQuery type providers.
func NewTypeProvider ¶
func NewTypeProvider(schemas map[string]Schema) TypeProvider
NewTypeProvider creates a new BigQuery type provider with pre-defined schemas.
func NewTypeProviderWithClient ¶
func NewTypeProviderWithClient(_ context.Context, client *bq.Client, datasetID string) (TypeProvider, error)
NewTypeProviderWithClient creates a new BigQuery type provider that can introspect database schemas. The caller owns the *bigquery.Client and is responsible for closing it.
Click to show internal directories.
Click to hide internal directories.