TruncateStatement represents a TRUNCATE TABLE statement Syntax: TRUNCATE [TABLE] table_name [, table_name ...] [RESTART IDENTITY | CONTINUE IDENTITY] [CASCADE | RESTRICT]
| 1813 | // TruncateStatement represents a TRUNCATE TABLE statement |
| 1814 | // Syntax: TRUNCATE [TABLE] table_name [, table_name ...] [RESTART IDENTITY | CONTINUE IDENTITY] [CASCADE | RESTRICT] |
| 1815 | type 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 | |
| 1822 | func (t *TruncateStatement) statementNode() {} |
| 1823 | func (t TruncateStatement) TokenLiteral() string { return "TRUNCATE TABLE" } |
nothing calls this directly
no outgoing calls
no test coverage detected