Add to_string for privilege

This commit is contained in:
Jere Vaara
2024-10-15 16:07:41 +03:00
parent 3f92477af0
commit e495b99abe
2 changed files with 4 additions and 1 deletions

View File

@@ -1387,7 +1387,7 @@ LIMIT 100",
"GRANT {} ON SCHEMA {} TO {}",
privileges
.iter()
.map(|p| p.as_str().to_string())
.map(|p| p.to_string())
.collect::<Vec<String>>()
.join(", "),
schema_name,

View File

@@ -55,4 +55,7 @@ impl Privilege {
Privilege::Execute => "EXECUTE",
}
}
pub fn to_string(&self) -> String {
self.as_str().to_string()
}
}