MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / DropStatement

Struct DropStatement

pkg/sql/ast/ast.go:1802–1807  ·  view source on GitHub ↗

DropStatement represents a DROP statement for tables, views, indexes, etc. Syntax: DROP object_type [IF EXISTS] name [CASCADE|RESTRICT]

Source from the content-addressed store, hash-verified

1800// DropStatement represents a DROP statement for tables, views, indexes, etc.
1801// Syntax: DROP object_type [IF EXISTS] name [CASCADE|RESTRICT]
1802type DropStatement struct {
1803 ObjectType string // TABLE, VIEW, MATERIALIZED VIEW, INDEX, etc.
1804 IfExists bool
1805 Names []string // Can drop multiple objects
1806 CascadeType string // CASCADE, RESTRICT, or empty
1807}
1808
1809func (d *DropStatement) statementNode() {}
1810func (d DropStatement) TokenLiteral() string { return "DROP " + d.ObjectType }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected