query.go 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package pg
  2. import (
  3. "github.com/kyleconroy/sqlc/internal/sql/ast"
  4. )
  5. type Query struct {
  6. CommandType CmdType
  7. QuerySource QuerySource
  8. QueryId uint32
  9. CanSetTag bool
  10. UtilityStmt ast.Node
  11. ResultRelation int
  12. HasAggs bool
  13. HasWindowFuncs bool
  14. HasTargetSrfs bool
  15. HasSubLinks bool
  16. HasDistinctOn bool
  17. HasRecursive bool
  18. HasModifyingCte bool
  19. HasForUpdate bool
  20. HasRowSecurity bool
  21. CteList *ast.List
  22. Rtable *ast.List
  23. Jointree *FromExpr
  24. TargetList *ast.List
  25. Override OverridingKind
  26. OnConflict *OnConflictExpr
  27. ReturningList *ast.List
  28. GroupClause *ast.List
  29. GroupingSets *ast.List
  30. HavingQual ast.Node
  31. WindowClause *ast.List
  32. DistinctClause *ast.List
  33. SortClause *ast.List
  34. LimitOffset ast.Node
  35. LimitCount ast.Node
  36. RowMarks *ast.List
  37. SetOperations ast.Node
  38. ConstraintDeps *ast.List
  39. WithCheckOptions *ast.List
  40. StmtLocation int
  41. StmtLen int
  42. }
  43. func (n *Query) Pos() int {
  44. return 0
  45. }