Add endpoint to set role grants

This commit is contained in:
Jere Vaara
2024-10-14 20:01:02 +03:00
parent d92d36a315
commit 4e15a68ffd
5 changed files with 101 additions and 12 deletions

View File

@@ -12,3 +12,11 @@ use serde::Deserialize;
pub struct ConfigurationRequest {
pub spec: ComputeSpec,
}
#[derive(Deserialize, Debug)]
pub struct SetRoleGrantsRequest {
pub database: String,
pub schema: String,
pub privilege: String,
pub role: String,
}

View File

@@ -168,3 +168,8 @@ pub struct InstalledExtension {
pub struct InstalledExtensions {
pub extensions: Vec<InstalledExtension>,
}
#[derive(Clone, Debug, Default, Serialize)]
pub struct SetRoleGrantsResult {
pub extension: String,
}