Change Value::Text to use a Cow<'static, str> instead of Vec<u8>

This commit is contained in:
pedrocarlo
2025-11-10 14:59:15 -03:00
parent c4d89662a8
commit 1db13889e3
25 changed files with 107 additions and 105 deletions

View File

@@ -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),
}
}