Documentation
¶
Index ¶
- func ApplySchema(ctx context.Context, projectID string, datasetID string, ...) error
- func ApplySchemaFromFile(ctx context.Context, projectID, datasetID, filepath string) error
- type BQField
- type BQSchemaConverter
- type CodeGenerator
- type InsertDTO
- type InsertDTOImpl
- type MaterializedView
- type MaterializedViewOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplySchema ¶
Types ¶
type BQSchemaConverter ¶
type BQSchemaConverter struct {
// contains filtered or unexported fields
}
func NewBQSchemaConverter ¶
func NewBQSchemaConverter(datasetID string, mv MaterializedView) *BQSchemaConverter
func (BQSchemaConverter) ApplyBaseTableSchema ¶
func (c BQSchemaConverter) ApplyBaseTableSchema(td *bigquery.TableMetadata) error
func (BQSchemaConverter) MaterializedViewDDL ¶
func (c BQSchemaConverter) MaterializedViewDDL() string
func (BQSchemaConverter) MaterializedViewSchema ¶
func (c BQSchemaConverter) MaterializedViewSchema() (*bigquery.TableMetadata, error)
type CodeGenerator ¶
type CodeGenerator struct {
// contains filtered or unexported fields
}
func NewCodeGenerator ¶
func NewCodeGenerator(plugin *protogen.Plugin, file *protogen.File) *CodeGenerator
func (CodeGenerator) Gen ¶
func (g CodeGenerator) Gen() error
type InsertDTOImpl ¶
type InsertDTOImpl struct {
// contains filtered or unexported fields
}
func NewInsertDTOImpl ¶
func NewInsertDTOImpl(tableName string, fields []BQField) *InsertDTOImpl
func (*InsertDTOImpl) AddField ¶
func (r *InsertDTOImpl) AddField(f BQField)
func (InsertDTOImpl) TableName ¶
func (r InsertDTOImpl) TableName() string
func (InsertDTOImpl) Value ¶
func (r InsertDTOImpl) Value() map[string]any
type MaterializedView ¶
type MaterializedView interface {
proto.Message
Name() string
Options() MaterializedViewOptions
InsertDTO() InsertDTO
}
Click to show internal directories.
Click to hide internal directories.