snapshot of https://github.com/sqlc-dev/sqlc.git (main, 2026-09-16; blobs > 131072B omitted)
Some checks failed
kotlin / test (push) Has been skipped
python / test (push) Has been skipped
typescript / test (push) Has been skipped
go / build darwin/amd64 (push) Has been cancelled
go / build linux/amd64 (push) Has been cancelled
go / build windows/amd64 (push) Has been cancelled
go / build darwin/arm64 (push) Has been cancelled
go / build linux/arm64 (push) Has been cancelled
go / build windows/arm64 (push) Has been cancelled
go / test (push) Has been cancelled
go / vuln_check (push) Has been cancelled
Some checks failed
kotlin / test (push) Has been skipped
python / test (push) Has been skipped
typescript / test (push) Has been skipped
go / build darwin/amd64 (push) Has been cancelled
go / build linux/amd64 (push) Has been cancelled
go / build windows/amd64 (push) Has been cancelled
go / build darwin/arm64 (push) Has been cancelled
go / build linux/arm64 (push) Has been cancelled
go / build windows/arm64 (push) Has been cancelled
go / test (push) Has been cancelled
go / vuln_check (push) Has been cancelled
This commit is contained in:
46
internal/sql/ast/query.go
Normal file
46
internal/sql/ast/query.go
Normal file
@@ -0,0 +1,46 @@
|
||||
package ast
|
||||
|
||||
type Query struct {
|
||||
Tag NodeTag[Query] `json:"tag"`
|
||||
|
||||
CommandType CmdType `json:"command_type"`
|
||||
QuerySource QuerySource `json:"query_source"`
|
||||
QueryId uint32 `json:"query_id"`
|
||||
CanSetTag bool `json:"can_set_tag"`
|
||||
UtilityStmt Node `json:"utility_stmt,omitempty"`
|
||||
ResultRelation int `json:"result_relation"`
|
||||
HasAggs bool `json:"has_aggs"`
|
||||
HasWindowFuncs bool `json:"has_window_funcs"`
|
||||
HasTargetSrfs bool `json:"has_target_srfs"`
|
||||
HasSubLinks bool `json:"has_sub_links"`
|
||||
HasDistinctOn bool `json:"has_distinct_on"`
|
||||
HasRecursive bool `json:"has_recursive"`
|
||||
HasModifyingCte bool `json:"has_modifying_cte"`
|
||||
HasForUpdate bool `json:"has_for_update"`
|
||||
HasRowSecurity bool `json:"has_row_security"`
|
||||
CteList *List `json:"cte_list,omitempty"`
|
||||
Rtable *List `json:"rtable,omitempty"`
|
||||
Jointree *FromExpr `json:"jointree,omitempty"`
|
||||
TargetList *List `json:"target_list,omitempty"`
|
||||
Override OverridingKind `json:"override"`
|
||||
OnConflict *OnConflictExpr `json:"on_conflict,omitempty"`
|
||||
ReturningList *List `json:"returning_list,omitempty"`
|
||||
GroupClause *List `json:"group_clause,omitempty"`
|
||||
GroupingSets *List `json:"grouping_sets,omitempty"`
|
||||
HavingQual Node `json:"having_qual,omitempty"`
|
||||
WindowClause *List `json:"window_clause,omitempty"`
|
||||
DistinctClause *List `json:"distinct_clause,omitempty"`
|
||||
SortClause *List `json:"sort_clause,omitempty"`
|
||||
LimitOffset Node `json:"limit_offset,omitempty"`
|
||||
LimitCount Node `json:"limit_count,omitempty"`
|
||||
RowMarks *List `json:"row_marks,omitempty"`
|
||||
SetOperations Node `json:"set_operations,omitempty"`
|
||||
ConstraintDeps *List `json:"constraint_deps,omitempty"`
|
||||
WithCheckOptions *List `json:"with_check_options,omitempty"`
|
||||
StmtLocation int `json:"stmt_location"`
|
||||
StmtLen int `json:"stmt_len"`
|
||||
}
|
||||
|
||||
func (n *Query) Pos() int {
|
||||
return 0
|
||||
}
|
||||
Reference in New Issue
Block a user