mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 01:12:56 +00:00
Add to_string for privilege
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -55,4 +55,7 @@ impl Privilege {
|
||||
Privilege::Execute => "EXECUTE",
|
||||
}
|
||||
}
|
||||
pub fn to_string(&self) -> String {
|
||||
self.as_str().to_string()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user