pub fn default_value_to_sql(column: &str, value: Value) -> Result<SqlValue>Expand description
Convert an evaluated default back into the planner’s literal type.
The inverse of sql_value_to_ndb above, which is the only producer of
these values — so every shape the evaluator can emit has an exact
counterpart here. Anything else raises rather than rendering through
Debug: a DEFAULT that stored Uuid("…") as its own debug text is the
same class of defect as dropping it, and harder to notice because the
column looks populated.