Documentation
¶
Index ¶
- func AfterTableAddColumn(ctx *sql.Context, runner sql.StatementRunner, nodeInterface sql.Node) error
- func AfterTableDropColumn(ctx *sql.Context, runner sql.StatementRunner, nodeInterface sql.Node) error
- func AfterTableRename(ctx *sql.Context, runner sql.StatementRunner, nodeInterface sql.Node) error
- func AfterTableRenameColumn(ctx *sql.Context, runner sql.StatementRunner, nodeInterface sql.Node) error
- func BeforeTableAddColumn(ctx *sql.Context, runner sql.StatementRunner, nodeInterface sql.Node) (sql.Node, error)
- func BeforeTableDeletion(ctx *sql.Context, runner sql.StatementRunner, nodeInterface sql.Node) (sql.Node, error)
- func BeforeTableModifyColumn(ctx *sql.Context, runner sql.StatementRunner, nodeInterface sql.Node) (sql.Node, error)
- func ValidateColumnTypeChangeForTable(ctx *sql.Context, tableName doltdb.TableName) error
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
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
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.