From d7956ea73bbf4fe825b10a20a7ac412172ba9fb6 Mon Sep 17 00:00:00 2001 From: Alejandro <38147015+Alejandro-Gon@users.noreply.github.com> Date: Tue, 7 Mar 2023 10:52:34 +0100 Subject: [PATCH] Add From implementation to Value (#1688) --- lib/src/sql/value/value.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/src/sql/value/value.rs b/lib/src/sql/value/value.rs index ae0b61d4..35758b83 100644 --- a/lib/src/sql/value/value.rs +++ b/lib/src/sql/value/value.rs @@ -415,6 +415,12 @@ impl From> for Value { } } +impl From> for Value { + fn from(v: Vec) -> Self { + Value::Array(Array::from(v)) + } +} + impl From> for Value { fn from(v: Vec) -> Self { Value::Array(Array::from(v))