MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / AlterTableStatement

Struct AlterTableStatement

pkg/sql/ast/ast.go:1584–1587  ·  view source on GitHub ↗

AlterTableStatement represents an ALTER TABLE statement. # Maintenance note AlterTableStatement is NOT produced by the parser. Parser.Parse* methods return [AlterStatement] (defined in alter.go) with Type == AlterTypeTable. AlterTableStatement is retained only so that existing code that constructs

Source from the content-addressed store, hash-verified

1582// stmt := tree.Statements[0].(*ast.AlterStatement)
1583// tableName := stmt.Name // AlterStatement.Name holds the table name
1584type AlterTableStatement struct {
1585 Table string
1586 Actions []AlterTableAction
1587}
1588
1589func (a *AlterTableStatement) statementNode() {}
1590func (a AlterTableStatement) TokenLiteral() string { return "ALTER TABLE" }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected