Skip to content

Commit

Permalink
🐛 Add more translate methods from sea_orm::Value to `wasm_bindgen::…
Browse files Browse the repository at this point in the history
…JsValue`.
  • Loading branch information
langyo committed Jul 12, 2024
1 parent fe6d843 commit cb50c9b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/database/src/providers/cloudflare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ impl ProxyDb {
Value::ChronoDateTimeLocal(Some(val)) => JsValue::from(val.to_string()),
Value::ChronoDateTimeUtc(Some(val)) => JsValue::from(val.to_string()),
Value::ChronoDateTimeWithTimeZone(Some(val)) => JsValue::from(val.to_string()),
Value::ChronoTime(Some(val)) => JsValue::from(val.to_string()),
Value::TimeDate(Some(val)) => JsValue::from(val.to_string()),
Value::TimeDateTime(Some(val)) => JsValue::from(val.to_string()),
Value::TimeDateTimeWithTimeZone(Some(val)) => JsValue::from(val.to_string()),
Value::TimeTime(Some(val)) => JsValue::from(val.to_string()),

Value::BigDecimal(Some(val)) => JsValue::from(val.to_string()),
Value::Decimal(Some(val)) => JsValue::from(val.to_string()),
Value::Uuid(Some(val)) => JsValue::from(val.to_string()),

_ => JsValue::NULL,
})
Expand Down

0 comments on commit cb50c9b

Please sign in to comment.