hook

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: Apache-2.0 Imports: 15 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, runner 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.

func ValidateColumnTypeChangeForTable added in v1.3.1

func ValidateColumnTypeChangeForTable(ctx *sql.Context, tableName doltdb.TableName) error

ValidateColumnTypeChangeForTable returns an error if the given table's implicit row type is used as the type of a column in any other table, which prevents altering the table's column types.

Types

This section is empty.

Jump to

Keyboard shortcuts

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