bind_naive_date

Function bind_naive_date 

Source
pub fn bind_naive_date(
    query_args: &mut AnyArguments<'_>,
    value: &NaiveDate,
    driver: &Drivers,
) -> Result<(), Error>
Expand description

Binds a NaiveDate value to a SQL query based on the database driver.

§Arguments

  • query_args - The SQLx AnyArguments to bind the value to
  • value - The NaiveDate value to bind
  • driver - The database driver being used

§Database-Specific Behavior

All drivers use standard DATE type with format “YYYY-MM-DD”