Skip to content

Commit

Permalink
Fix placement of UpdateItem interface
Browse files Browse the repository at this point in the history
  • Loading branch information
apstndb committed Jan 9, 2025
1 parent 042b239 commit 5337085
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ast/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,15 @@ type InsertInput interface {
func (ValuesInput) isInsertInput() {}
func (SubQueryInput) isInsertInput() {}

// UpdateItem represents SET clause items in UPDATE.
type UpdateItem interface {
Node
isUpdateItem()
}

func (UpdateItemAssign) isUpdateItem() {}
func (UpdateItemNested) isUpdateItem() {}

// ChangeStreamFor represents FOR clause in CREATE/ALTER CHANGE STREAM statement.
type ChangeStreamFor interface {
Node
Expand Down Expand Up @@ -3731,15 +3740,6 @@ type Update struct {
ThenReturn *ThenReturn // optional
}

// UpdateItem represents SET clause items in UPDATE.
type UpdateItem interface {
Node
isUpdateItem()
}

func (UpdateItemAssign) isUpdateItem() {}
func (UpdateItemNested) isUpdateItem() {}

// UpdateItemNested is nested update node in UPDATE statement.
//
// ({{.DML | sql}})
Expand Down

0 comments on commit 5337085

Please sign in to comment.