pub struct Truncate {
pub table_names: Vec<TruncateTableTarget>,
pub partitions: Option<Vec<Expr>>,
pub table: bool,
pub identity: Option<TruncateIdentityOption>,
pub cascade: Option<CascadeOption>,
pub on_cluster: Option<Ident>,
}Expand description
A TRUNCATE statement.
TRUNCATE TABLE table_names [PARTITION (partitions)] [RESTART IDENTITY | CONTINUE IDENTITY] [CASCADE | RESTRICT] [ON CLUSTER cluster_name]Fields§
§table_names: Vec<TruncateTableTarget>Table names to truncate
partitions: Option<Vec<Expr>>Optional partition specification
table: boolTABLE - optional keyword
identity: Option<TruncateIdentityOption>Postgres-specific option: [ RESTART IDENTITY | CONTINUE IDENTITY ]
cascade: Option<CascadeOption>Postgres-specific option: [ CASCADE | RESTRICT ]
on_cluster: Option<Ident>ClickHouse-specific option: [ ON CLUSTER cluster_name ] ClickHouse
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Truncate
impl<'de> Deserialize<'de> for Truncate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Truncate
impl Ord for Truncate
Source§impl PartialOrd for Truncate
impl PartialOrd for Truncate
Source§impl VisitMut for Truncate
impl VisitMut for Truncate
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
impl Eq for Truncate
impl StructuralPartialEq for Truncate
Auto Trait Implementations§
impl Freeze for Truncate
impl RefUnwindSafe for Truncate
impl Send for Truncate
impl Sync for Truncate
impl Unpin for Truncate
impl UnwindSafe for Truncate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more