Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions internal/sql/ast/drop_behavior.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
package ast

// DropBehavior captures whether a Postgres DROP statement was qualified with
// RESTRICT or CASCADE. The numeric values mirror pganalyze/pg_query_go's
// DropBehavior enum:
//
// DropBehavior_UNDEFINED = 0 (no behavior word supplied — same as RESTRICT in PG)
// DROP_RESTRICT = 1
// DROP_CASCADE = 2
type DropBehavior uint

const (
DropBehaviorUndefined DropBehavior = 0
DropBehaviorRestrict DropBehavior = 1
DropBehaviorCascade DropBehavior = 2
)

func (n *DropBehavior) Pos() int {
return 0
}
Loading