Update in oxide_sql_core::builder::typed - Rust

pub struct Update<T, Set>

where T: Table,

{ /* private fields */ }
Expand description

A type-safe UPDATE query builder that validates column names at compile time.

This builder ensures that:

  • Only valid columns for the table can be updated
  • The table name is derived from the type
  • Invalid column references fail to compile

For dynamic (string-based) queries, use UpdateDyn.

Source§
Source

Creates a new typed UPDATE builder for the given table.

Source

Sets a column to a value using a type-safe column reference.

Source§
Source

Sets another column to a value using a type-safe column reference.

Source

Adds a WHERE clause with a type-safe column expression.

Source

Adds a WHERE clause with a raw expression.

Source

Builds the query and returns (SQL, parameters).

Source

Builds the query and returns only the SQL string.