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

Struct TruncateStatement

pkg/sql/ast/ast.go:1815–1820  ·  view source on GitHub ↗

TruncateStatement represents a TRUNCATE TABLE statement Syntax: TRUNCATE [TABLE] table_name [, table_name ...] [RESTART IDENTITY | CONTINUE IDENTITY] [CASCADE | RESTRICT]

Source from the content-addressed store, hash-verified

1813// TruncateStatement represents a TRUNCATE TABLE statement
1814// Syntax: TRUNCATE [TABLE] table_name [, table_name ...] [RESTART IDENTITY | CONTINUE IDENTITY] [CASCADE | RESTRICT]
1815type TruncateStatement struct {
1816 Tables []string // Table names to truncate
1817 RestartIdentity bool // RESTART IDENTITY - reset sequences
1818 ContinueIdentity bool // CONTINUE IDENTITY - keep sequences (default)
1819 CascadeType string // CASCADE, RESTRICT, or empty
1820}
1821
1822func (t *TruncateStatement) statementNode() {}
1823func (t TruncateStatement) TokenLiteral() string { return "TRUNCATE TABLE" }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected