Remove Value::Uuid

We don't have the code to parse UUID literals, so it's dead code, that
brings in the dependency on `uuid`.

I kept SQLType::Uuid, as it's not dead code, though it ought to be
dialect-specific.
This commit is contained in:
Nickolay Ponomarev 2019-04-21 05:22:29 +03:00
parent 6bb2acc9f8
commit c679c7a5b4
2 changed files with 0 additions and 6 deletions

View file

@ -21,7 +21,6 @@ path = "src/lib.rs"
[dependencies]
log = "0.4.5"
chrono = "0.4.6"
uuid = "0.7.1"
[dev-dependencies]
simple_logger = "1.0.1"

View file

@ -1,7 +1,5 @@
use chrono::{offset::FixedOffset, DateTime, NaiveDate, NaiveDateTime, NaiveTime};
use uuid::Uuid;
/// SQL values such as int, double, string, timestamp
#[derive(Debug, Clone, PartialEq)]
pub enum Value {
@ -9,8 +7,6 @@ pub enum Value {
Long(i64),
/// Literal floating point value
Double(f64),
/// Uuid value
Uuid(Uuid),
/// 'string value'
SingleQuotedString(String),
/// N'string value'
@ -34,7 +30,6 @@ impl ToString for Value {
match self {
Value::Long(v) => v.to_string(),
Value::Double(v) => v.to_string(),
Value::Uuid(v) => v.to_string(),
Value::SingleQuotedString(v) => format!("'{}'", escape_single_quote_string(v)),
Value::NationalStringLiteral(v) => format!("N'{}'", v),
Value::Boolean(v) => v.to_string(),