Skip to content

Commit 85dcc45

Browse files
committed
0.3.9
Convert other into string for serde
1 parent 48be554 commit 85dcc45

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Diff for: Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "multisql"
3-
version = "0.3.8"
3+
version = "0.3.9"
44
authors = ["Kyran Gostelow <kyran@gostelow.me>", "Taehoon Moon <taehoon.moon@outlook.com>"]
55
edition = "2021"
66
description = "MultiSQL"

Diff for: src/data/value/serde_convert.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
use crate::Value;
1+
use crate::{Cast, Value};
22

33
impl From<Value> for serde_json::value::Value {
44
fn from(value: Value) -> serde_json::value::Value {
55
match value {
66
Value::Bool(value) => value.into(),
7+
Value::U64(value) => value.into(),
78
Value::I64(value) => value.into(),
89
Value::F64(value) => value.into(),
910
Value::Str(value) => value.into(),
1011
Value::Null => serde_json::value::Value::Null,
11-
_ => unimplemented!(),
12+
other => {
13+
let string: String = other.cast().unwrap();
14+
string.into()
15+
}
1216
}
1317
}
1418
}

0 commit comments

Comments
 (0)