1
0

alter_table_cmd.go 313 B

12345678910111213141516171819202122
  1. package ast
  2. type AlterTableType int
  3. const (
  4. AT_AddColumn AlterTableType = iota
  5. AT_AlterColumnType
  6. AT_DropColumn
  7. AT_DropNotNull
  8. AT_SetNotNull
  9. )
  10. type AlterTableCmd struct {
  11. Subtype AlterTableType
  12. Name *string
  13. Def *ColumnDef
  14. MissingOk bool
  15. }
  16. func (n *AlterTableCmd) Pos() int {
  17. return 0
  18. }