partition_elem.go 255 B

1234567891011121314151617
  1. package pg
  2. import (
  3. "github.com/kyleconroy/sqlc/internal/sql/ast"
  4. )
  5. type PartitionElem struct {
  6. Name *string
  7. Expr ast.Node
  8. Collation *ast.List
  9. Opclass *ast.List
  10. Location int
  11. }
  12. func (n *PartitionElem) Pos() int {
  13. return n.Location
  14. }