Add support for simpler datastore paths
This commit is contained in:
parent
f22d5d3e51
commit
65d91b122e
1 changed files with 3 additions and 3 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue