admin SHOW DATABASES (#51)

* admin SHOW DATABASES

* test

* correct replica count
This commit is contained in:
Lev Kokotov
2022-02-28 17:22:28 -08:00
committed by GitHub
parent eb1473060e
commit b21e0f4a7e
6 changed files with 170 additions and 9 deletions

View File

@@ -19,6 +19,15 @@ pub enum Role {
Replica,
}
impl ToString for Role {
fn to_string(&self) -> String {
match *self {
Role::Primary => "primary".to_string(),
Role::Replica => "replica".to_string(),
}
}
}
impl PartialEq<Option<Role>> for Role {
fn eq(&self, other: &Option<Role>) -> bool {
match other {