mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-16 14:44:21 +01:00
Change Value::Text to use a Cow<'static, str> instead of Vec<u8>
This commit is contained in:
@@ -56,7 +56,7 @@ fn js_value_to_core(value: Either5<Null, i64, f64, String, Vec<u8>>) -> turso_co
|
||||
Either5::A(_) => turso_core::Value::Null,
|
||||
Either5::B(value) => turso_core::Value::Integer(value),
|
||||
Either5::C(value) => turso_core::Value::Float(value),
|
||||
Either5::D(value) => turso_core::Value::Text(turso_core::types::Text::new(&value)),
|
||||
Either5::D(value) => turso_core::Value::Text(turso_core::types::Text::new(value)),
|
||||
Either5::E(value) => turso_core::Value::Blob(value),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user