Versions in this module Expand all Collapse all v0 v0.2.0 Aug 22, 2026 Changes in this version + type CheckOption string + const CascadedCheckOption + const LocalCheckOption + type Function struct + func NewFunction(name string) *Function + func (f *Function) Apply(ctx context.Context, ds *pgxext.DataSource) error + func (f *Function) Body(body string) *Function + func (f *Function) BuildSQL() (string, error) + func (f *Function) Drop(ctx context.Context, ds *pgxext.DataSource, ifExists bool) error + func (f *Function) DropSQL(ifExists bool) (string, error) + func (f *Function) Language(language string) *Function + func (f *Function) OrReplace() *Function + func (f *Function) Returns(returnType string) *Function + func (f *Function) SecurityDefiner() *Function + func (f *Function) Strict() *Function + func (f *Function) WithArguments(args ...string) *Function + func (f *Function) WithVolatility(volatility Volatility) *Function + type MaterializedView struct + func NewMaterializedView(name string) *MaterializedView + func (v *MaterializedView) Apply(ctx context.Context, ds *pgxext.DataSource) error + func (v *MaterializedView) As(query string) *MaterializedView + func (v *MaterializedView) BuildSQL() (string, error) + func (v *MaterializedView) Drop(ctx context.Context, ds *pgxext.DataSource, ifExists bool) error + func (v *MaterializedView) DropSQL(ifExists bool) (string, error) + func (v *MaterializedView) IfNotExists() *MaterializedView + func (v *MaterializedView) InTablespace(name string) *MaterializedView + func (v *MaterializedView) Refresh(ctx context.Context, ds *pgxext.DataSource, concurrently bool, withData bool) error + func (v *MaterializedView) RefreshSQL(concurrently bool, withData bool) (string, error) + func (v *MaterializedView) WithData() *MaterializedView + func (v *MaterializedView) WithNoData() *MaterializedView + func (v *MaterializedView) WithStorageParameter(name, value string) *MaterializedView + type View struct + func NewView(name string) *View + func (v *View) Apply(ctx context.Context, ds *pgxext.DataSource) error + func (v *View) As(query string) *View + func (v *View) BuildSQL() (string, error) + func (v *View) Drop(ctx context.Context, ds *pgxext.DataSource, ifExists bool) error + func (v *View) DropSQL(ifExists bool) (string, error) + func (v *View) OrReplace() *View + func (v *View) WithCheckOption(option CheckOption) *View + type Volatility string + const Immutable + const Stable + const Volatile