hook

package
v0.55.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterTableAddColumn added in v0.55.0

func AfterTableAddColumn(ctx *sql.Context, runner sql.StatementRunner, nodeInterface sql.Node) error

AfterTableAddColumn handles updating various table columns, alongside other validation that's unique to Doltgres.

func AfterTableDropColumn added in v0.55.0

func AfterTableDropColumn(ctx *sql.Context, runner sql.StatementRunner, nodeInterface sql.Node) error

AfterTableDropColumn handles updating various table columns, alongside other validation that's unique to Doltgres.

func AfterTableRename added in v0.55.0

func AfterTableRename(ctx *sql.Context, runner sql.StatementRunner, nodeInterface sql.Node) error

AfterTableRename handles updating various columns using the table type, alongside other validation that's unique to Doltgres.

func AfterTableRenameColumn added in v0.55.0

func AfterTableRenameColumn(ctx *sql.Context, runner sql.StatementRunner, nodeInterface sql.Node) error

AfterTableRenameColumn handles updating various table columns, alongside other validation that's unique to Doltgres.

func BeforeTableAddColumn added in v0.55.0

func BeforeTableAddColumn(ctx *sql.Context, runner sql.StatementRunner, nodeInterface sql.Node) (sql.Node, error)

BeforeTableAddColumn handles validation that's unique to Doltgres.

func BeforeTableDeletion

func BeforeTableDeletion(ctx *sql.Context, _ sql.StatementRunner, nodeInterface sql.Node) (sql.Node, error)

BeforeTableDeletion performs all validation necessary to ensure that table deletion does not leave the database in an invalid state.

func BeforeTableModifyColumn added in v0.55.0

func BeforeTableModifyColumn(ctx *sql.Context, runner sql.StatementRunner, nodeInterface sql.Node) (sql.Node, error)

BeforeTableModifyColumn handles validation that's unique to Doltgres.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL