Skip to main content

DELETE Builder

The DeleteDyn builder creates DELETE statements. Oxide SQL provides both a standard builder and a safe variant that requires a WHERE clause.

Features

  • Standard DeleteDyn builder for general use
  • SafeDelete builder that requires a WHERE clause at compile time
  • Complex WHERE conditions
  • All values are automatically parameterized

When to Use Each Builder

BuilderUse Case
DeleteDynWhen you might intentionally delete all rows (e.g., clearing temp tables)
SafeDeleteFor most cases - prevents accidental data loss

API Reference

See the DeleteDyn rustdoc for the full API with code examples.