Skip to main content

truncate

Function truncate 

Source
pub async fn truncate<S: AsRef<str>>(
    pool: &PgPool,
    tables: &[S],
) -> Result<(), Error>
Expand description

Empty tables, restarting their sequences. Each name goes through quote_identifier.

ยงErrors

Fails on an invalid name or a database error.