Documentation ¶
Index ¶
- func ResourceView() *schema.Resource
- type CHView
- type CHViewService
- func (ts *CHViewService) CreateView(ctx context.Context, viewResource ViewResource) error
- func (ts *CHViewService) DeleteView(ctx context.Context, viewResource ViewResource) error
- func (ts *CHViewService) GetDBViews(ctx context.Context, database string) ([]CHView, error)
- func (ts *CHViewService) GetView(ctx context.Context, database string, view string) (*CHView, error)
- type ViewResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResourceView ¶
Types ¶
type CHView ¶
type CHView struct { Database string `ch:"database"` Name string `ch:"name"` Query string `ch:"as_select"` Engine string `ch:"engine"` Comment string `ch:"comment"` }
func (*CHView) ToResource ¶
func (t *CHView) ToResource() (*ViewResource, error)
type CHViewService ¶
func (*CHViewService) CreateView ¶
func (ts *CHViewService) CreateView(ctx context.Context, viewResource ViewResource) error
func (*CHViewService) DeleteView ¶
func (ts *CHViewService) DeleteView(ctx context.Context, viewResource ViewResource) error
func (*CHViewService) GetDBViews ¶
type ViewResource ¶
type ViewResource struct { Database string Name string Query string Cluster string Materialized bool ToTable string Comment string }
func (*ViewResource) Validate ¶
func (t *ViewResource) Validate() diag.Diagnostics
Click to show internal directories.
Click to hide internal directories.