bind_temporal_value

Function bind_temporal_value 

Source
pub fn bind_temporal_value(
    query_args: &mut AnyArguments<'_>,
    value_str: &str,
    sql_type: &str,
    driver: &Drivers,
) -> Result<(), Error>
Expand description

Binds a temporal value to a SQL query based on its SQL type.

This is a convenience function that dispatches to the appropriate type-specific binding function based on the SQL type string.

ยงArguments

  • query_args - The SQLx AnyArguments to bind the value to
  • value_str - The string representation of the temporal value
  • sql_type - The SQL type of the column
  • driver - The database driver being used