-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdelete_statement.go
More file actions
24 lines (20 loc) · 1.05 KB
/
delete_statement.go
File metadata and controls
24 lines (20 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package ast
// DeleteStatement represents a DELETE statement.
type DeleteStatement struct {
DeleteSpecification *DeleteSpecification `json:"DeleteSpecification,omitempty"`
WithCtesAndXmlNamespaces *WithCtesAndXmlNamespaces `json:"WithCtesAndXmlNamespaces,omitempty"`
OptimizerHints []OptimizerHintBase `json:"OptimizerHints,omitempty"`
}
func (d *DeleteStatement) node() {}
func (d *DeleteStatement) statement() {}
// DeleteSpecification contains the details of a DELETE.
type DeleteSpecification struct {
Target TableReference `json:"Target,omitempty"`
FromClause *FromClause `json:"FromClause,omitempty"`
WhereClause *WhereClause `json:"WhereClause,omitempty"`
TopRowFilter *TopRowFilter `json:"TopRowFilter,omitempty"`
OutputClause *OutputClause `json:"OutputClause,omitempty"`
OutputIntoClause *OutputIntoClause `json:"OutputIntoClause,omitempty"`
}
func (d *DeleteSpecification) node() {}
func (d *DeleteSpecification) dataModificationSpecification() {}