From 429ca31faa072e5d73c245358cfd8ef913f9837b Mon Sep 17 00:00:00 2001 From: Rushmore Mushambi Date: Tue, 20 Feb 2024 17:34:07 +0200 Subject: [PATCH] Fix the SurrealKV scheme in the CLI (#3551) --- src/cli/validator/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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")), } }