diff --git a/src/cli/validator/mod.rs b/src/cli/validator/mod.rs index 2abe5b95..468e5eaa 100644 --- a/src/cli/validator/mod.rs +++ b/src/cli/validator/mod.rs @@ -15,6 +15,7 @@ pub(crate) fn path_valid(v: &str) -> Result { v if v.starts_with("file:") => Ok(v.to_string()), v if v.starts_with("rocksdb:") => Ok(v.to_string()), v if v.starts_with("speedb:") => Ok(v.to_string()), + v if v.starts_with("surrealkv:") => Ok(v.to_string()), v if v.starts_with("tikv:") => Ok(v.to_string()), v if v.starts_with("fdb:") => Ok(v.to_string()), _ => Err(String::from("Provide a valid database path parameter")), @@ -45,9 +46,8 @@ pub(crate) fn endpoint_valid(v: &str) -> Result { let scheme = split_endpoint(v).0; match scheme { - "http" | "https" | "ws" | "wss" | "fdb" | "mem" | "rocksdb" | "file" | "tikv" => { - Ok(v.to_string()) - } + "http" | "https" | "ws" | "wss" | "fdb" | "mem" | "rocksdb" | "speedb" | "surrealkv" + | "file" | "tikv" => Ok(v.to_string()), _ => Err(String::from("Provide a valid database connection string")), } }