column_def.go 504 B

12345678910111213141516171819202122232425262728
  1. package pg
  2. import (
  3. "github.com/kyleconroy/sqlc/internal/sql/ast"
  4. )
  5. type ColumnDef struct {
  6. Colname *string
  7. TypeName *TypeName
  8. Inhcount int
  9. IsLocal bool
  10. IsNotNull bool
  11. IsFromType bool
  12. IsFromParent bool
  13. Storage byte
  14. RawDefault ast.Node
  15. CookedDefault ast.Node
  16. Identity byte
  17. CollClause *CollateClause
  18. CollOid Oid
  19. Constraints *ast.List
  20. Fdwoptions *ast.List
  21. Location int
  22. }
  23. func (n *ColumnDef) Pos() int {
  24. return n.Location
  25. }