Add support for simpler datastore paths

This commit is contained in:
Tobie Morgan Hitchcock 2022-08-29 12:30:00 +01:00
parent f22d5d3e51
commit 65d91b122e

View file

@ -42,13 +42,13 @@ fn path_valid(v: &str) -> Result<(), String> {
if v == "memory" { if v == "memory" {
return Ok(()); return Ok(());
} }
if v.starts_with("file://") { if v.starts_with("file:") {
return Ok(()); return Ok(());
} }
if v.starts_with("tikv://") { if v.starts_with("tikv:") {
return Ok(()); return Ok(());
} }
if v.starts_with("fdb://") { if v.starts_with("fdb:") {
return Ok(()); return Ok(());
} }
Err(String::from( Err(String::from(